diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c191bd..4083596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to the "arcade-vsc" extension will be documented in this fil The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.2] - 2024-07-01 + +### Fixed + +- Updated the README to reflect the new changes. + +### Changed + +- Reduced polling interval. The clock wil still work as normal. Start/Pause/Resume/End may be delayed. +- Improved error handling for when the API is down to reduce the amount of requests. +- Added back Slack user IDs as now required by the API. You will need to re-init. + ## [0.6.1] - 2024-06-30 ### Changed @@ -81,6 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release of the extension. - Added the ability to track hack hour times in the status bar. +[0.6.2]: https://github.com/samdev-7/arcade-vsc/compare/v0.6.1...v0.6.2 [0.6.1]: https://github.com/samdev-7/arcade-vsc/compare/v0.6.0...v0.6.1 [0.6.0]: https://github.com/samdev-7/arcade-vsc/compare/v0.5.3...v0.6.0 [0.5.3]: https://github.com/samdev-7/arcade-vsc/compare/v0.5.2...v0.5.3 diff --git a/README.md b/README.md index 02bac83..b93d329 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,11 @@ You have to be in the Hack Club Slack to use the extension. See the [Hack Club A ## Extension Settings -To set up, you will need to get your Slack ID from the Hack Club Slack. You can do this by going to the `#what-is-my-slack-id` channel and sending something. +To set up, you will need to get your Slack ID and Arcade API key from the Hack Club Slack. +Get your ID by going to the `#what-is-my-slack-id` channel and sending something. +Get an API key by using the command `/api`. Do not share this key with others. -Then, you will need to run the `Arcade: Init` command and enter your Slack ID. +Then, you will need to run the `Arcade: Init` command and enter your Slack ID and API key. The extension will then automatically start displaying the timer in the status bar during active Arcade sessions. @@ -27,6 +29,7 @@ Arcade is configurable via VS Code's configuration options. ## Known Issues - The timer may flicker when it is updating, this is due to latency with the Hack Club Arcade API. +- There may be delays in Start/Stop/Resume/End updates due to rate limits the Hack Club Arcade API. The timer will still count down normally. ## Release Notes diff --git a/package.json b/package.json index 1d9789a..a4a9c30 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "arcade-vsc", "displayName": "Arcade VSC", "description": "Visual Studio Code integration for Hack Club Arcade", - "version": "0.6.1", + "version": "0.6.2", "engines": { "vscode": "^1.90.0" }, diff --git a/src/extension.ts b/src/extension.ts index 619b658..6363d7d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -214,6 +214,7 @@ async function loop( try { session = await api.getSession(key, id); } catch (err: unknown) { + console.error(`Error while fetching session: ${err}`); loopInterval = Math.min( FETCH_RETRY_CAP, FETCH_INTERVAL * Math.pow(FETCH_ERROR_FACTOR, stickyErrorCount)