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

Commit

Permalink
0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samdev-7 committed Jun 25, 2024
1 parent 32c36fd commit c85007f
Show file tree
Hide file tree
Showing 8 changed files with 2,053 additions and 74 deletions.
13 changes: 7 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.extension-test-runner"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.extension-test-runner",
"connor4312.esbuild-problem-matchers"
]
}
56 changes: 38 additions & 18 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
"version": "2.0.0",
"tasks": [
{
"label": "watch",
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "watch:esbuild",
"group": "build",
"problemMatcher": "$esbuild-watch",
"isBackground": true,
"label": "npm: watch:esbuild",
"presentation": {
"group": "watch",
"reveal": "never"
}
},
{
"type": "npm",
"script": "watch:tsc",
"group": "build",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"label": "npm: watch:tsc",
"presentation": {
"group": "watch",
"reveal": "never"
}
}
]
}
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ vsc-extension-quickstart.md
**/*.map
**/*.ts
**/.vscode-test.*
out/**
esbuild.json
eslintrc.json
node_modules/**
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ 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.0] - 2024-06-24

### Added

- You can now click the status bar item to directly open Slack.
- The goal is now shown in relevant notifications.
- Pauses now show the estimated time remaining in the status bar.

### Fixed

- Fixed incorrect time when a session has previously been paused.
- Removed an invalid tag.

### Changed

- Now uses the new Hack Hour API.
- Background refactoring of code to improve future development.
- Removed verbose warning notifications, still visible in console.
- The timer is now synced with hakkuun.
- Errors are now all recoverable.
- Tweaked sensitivity of start reminder notifications.
- Specific notification now exist for when you pause and resume a session.
- Extension is now bundled.

## [0.5.3] - 2024-06-22

### Fixed
Expand Down Expand Up @@ -51,6 +75,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.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
[0.5.2]: https://github.com/samdev-7/arcade-vsc/compare/v0.5.1...v0.5.2
[0.5.1]: https://github.com/samdev-7/arcade-vsc/compare/v0.5.0...v0.5.1
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Arcade is configurable via VS Code's configuration options.

## Known Issues

- The timer may be incorrect if you pause your session and then resume it. This is an upstream issue with the Hack Club Arcade API.
- The timer may flicker when it is updating, this is due to latency with the Hack Club Arcade API.

## Release Notes
Expand Down
56 changes: 56 additions & 0 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
const esbuild = require("esbuild");

const production = process.argv.includes("--production");
const watch = process.argv.includes("--watch");

async function main() {
const ctx = await esbuild.context({
entryPoints: ["src/extension.ts"],
bundle: true,
format: "cjs",
minify: production,
sourcemap: !production,
sourcesContent: false,
platform: "node",
outfile: "dist/extension.js",
external: ["vscode"],
logLevel: "silent",
plugins: [
/* add to the end of plugins array */
esbuildProblemMatcherPlugin,
],
});
if (watch) {
await ctx.watch();
} else {
await ctx.rebuild();
await ctx.dispose();
}
}

/**
* @type {import('esbuild').Plugin}
*/
const esbuildProblemMatcherPlugin = {
name: "esbuild-problem-matcher",

setup(build) {
build.onStart(() => {
console.log("[watch] build started");
});
build.onEnd((result) => {
result.errors.forEach(({ text, location }) => {
console.error(`✘ [ERROR] ${text}`);
console.error(
` ${location.file}:${location.line}:${location.column}:`
);
});
console.log("[watch] build finished");
});
},
};

main().catch((e) => {
console.error(e);
process.exit(1);
});
Loading

0 comments on commit c85007f

Please sign in to comment.