Modernize aw-watcher-vscode to v0.6.0 (Node 18+, VS Code 1.85, TS 5.6, ESLint, CI)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- eslint, github-actions, nodejs, typescript, vscode
Research direction
Start from the diff of PR #52 (branch modernize/v0.6.0), which already carries most of the change: package.json, src/extension.ts (enabled/serverUrl settings, null-safe initGit, branch in heartbeats), tsconfig.json, .eslintrc.json and .github/workflows/ci.yml. What is left is maintainer-level: smoke-test against aw-server --testing to confirm project, file, language and branch fields arrive, clear the brace-expansion advisory in the devDependency tree, and settle the engine-floor, tagging and publishing decisions. Done means green CI plus those checks, not a newcomer patch.
Written by the indexing model from the issue text.
Description
Tracking issue for the aw-watcher-vscode v0.6.0 modernization.
Goal
Bring the extension up to current toolchains. It hasn't had a release since 2020 (last release was v0.5.0, which was never even tagged in git), so the modernization covers Node 18+, VS Code 1.85, TypeScript 5.6, ESLint replacing deprecated TSLint, @vscode/test-cli, and CI.
Implementation: PR #52
ActivityWatch/aw-watcher-vscode#52 — branch modernize/v0.6.0.
Summary of changes in that PR:
Manifest
version:0.5.0→0.6.0engines.vscode:^1.23.0→^1.85.0engines.node: added>=18activationEvents:["*"]→["onStartupFinished"]- New settings:
aw-watcher-vscode.enabled,aw-watcher-vscode.serverUrl
Dependencies
typescript^4.1.3→^5.6.0tslint(deprecated) →eslint ^8.57.0+@typescript-eslint ^8+prettier ^3.3.0vscode-test(deprecated) →@vscode/test-cli+@vscode/test-electronaxios ^0.21.1(CVE-2021-3749, CVE-2023-45857) → removedmocha^8.2.1→^10.7.0,@types/mocha→^10.0.0,@types/node→^22.0.0- Added
@vscode/vscefornpm run package
Source
src/extension.ts: heartbeatcatchno longer destructures{ err }(newaw-client-jsthrowsFetchError);initGit()is null-safe when the built-in Git extension isn't installed; honorsenabledandserverUrlsettings.src/test/extension.test.ts: real smoke test that the compiled entry point exists.tsconfig.json: targetes6→es2022, addednoUnusedParameters,noImplicitReturns,noFallthroughCasesInSwitch,forceConsistentCasingInFileNames,esModuleInterop.pathsmapping soaw-clientresolves to the submodule source (it's not on npm).
Tooling
tslint.jsonremoved.- Added
.eslintrc.json,.eslintignore,.prettierrc.json,.vscode-test.js. - Added
.github/workflows/ci.yml(lint + compile + test +.vsixartifact on Ubuntu withxvfb-run).
Submodules
aw-client-js:11a7f066→6093fbb(Bearer-token auth, dropsaxiosfor nativefetch).media:cb597f7c→a45151.
Behavior change worth calling out
branchis now included in heartbeats via_getCurrentBranch()from the VS Code git extension — closes #41.
Open sub-tasks
- Maintainer smoke-test against
aw-server --testing(headless envs can't do this) — confirm heartbeats arrive withproject,file,language,branchfields - Resolve
brace-expansionCVE in devDependency chain (transitive, not shipped, butnpm auditwill keep flagging) - Decide on engine floor policy (
vscode ^1.85.0drops VS Code < 1.85, released Dec 2023) - Tag
v0.6.0after merge (nov0.5.0tag exists upstream — adding the tag retroactively is a separate decision) - Publish to VS Marketplace and/or Open VSX (
activitywatchpublisher)
Risk
- Low for downstream users — bucket ID unchanged (
aw-watcher-vscode_<hostname>), event schema additive (newbranchkey), settings additions default to existing behavior. - Medium for binary shipping — the new
aw-client-jsworks against the currentaw-serverAPI. Olderaw-serverinstances will surfaceFetchErroras a toast on every heartbeat; setaw-watcher-vscode.enabled: falseto silence.
- Dominant language
- TypeScript
- Stars
- 285
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-watcher-vscode
-
`project: unknown` heartbeats split real editor events, so durations collapse to zeroPossibly taken @BeatLink claimed this 34 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
ActivityWatch/aw-watcher-vscode#57 · 5 comments ·
-
[feature] maxHeartbeatsPerSec as a decimal number like 0.5 for heartbeat every 2 seconds (or more)Possibly taken @TimeToBuildBob claimed this 17 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
ActivityWatch/aw-watcher-vscode#49 · 1 comment ·
-
track terminal and other tabsPossibly taken @TimeToBuildBob claimed this 17 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ActivityWatch/aw-watcher-vscode#43 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
ActivityWatch/aw-watcher-vscode#41 · 5 comments · 4 reactions ·
-
Spams debug console while working on other extensions in Extension HostMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 Half a day Newbie friendliness 32/100
All issues in ActivityWatch/aw-watcher-vscode
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day