Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
samdev-7 committed Jul 1, 2024
1 parent d111800 commit 326d350
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 326d350

Please sign in to comment.