v1.2.1 — 2026-05-29
Extension
- Bundle the Python sources (
cli.py,scanner.py,dashboard.py) inside the.vsixso the extension works standalone — the only end-user dependency is Python 3.8+ onPATH. Thevscode:prepublishscript copies the files from the repo root at package time, so each extension version embeds the matching Python snapshot. - Auto-start the dashboard when the user clicks the sidebar icon (no Command Palette step needed).
DashboardSidebaraccepts anonShowcallback wired toopenDashboard(); in-flight startup coalescing on the host side keeps clicks idempotent. - Discover
cli.pyin any open VS Code workspace folder — covers the "cloned the repo into c:\github\claude-usage and opened it in VS Code" case that the original monorepo-sibling fallback couldn't reach for installed extensions. - Platform-aware error messages: missing-Python guidance now leads with the right install command (python.org installer on Windows with the "Add to PATH" reminder;
brew install pythonon macOS; distro package manager on Linux). The Homebrew suggestion is hidden on Windows. - Add a dedicated vscode-extension/README.md for the marketplace listing.
- Real gauge icon shipped (was a placeholder).
- 4 new install-mode tests for bundled discovery + ordering; 4 sidebar tests for the auto-start callback. Total extension test count: 74.
v1.2.0 — 2026-05-29
Distribution
- Add a VS Code extension under
vscode-extension/. Spawns the existing Python dashboard server in the background and embeds it via a webview iframe — no UI rewrite, all existing charts and filters reused. Activity-bar sidebar entry, four commands (Open Dashboard,Rescan,Restart Server,Show Logs), and two settings (pythonPath,cliPath,port). 63 tests covering Python discovery, install-mode resolution, port allocation, server lifecycle, and webview HTML/CSP. Built as.vsix, installable via scripts/install.sh / install.ps1. - Auto-discovery: extension finds
claude-usageon PATH (Homebrew users) or a siblingcli.pyin the monorepo (dev). Setting overrides for both Python interpreter and CLI path.
CI
- Add
.github/workflows/extension-ci.yml: clean Ubuntu,npm ci && npx tsc && npm test && npm run package, uploads the.vsixas an artifact on every push to DEV/main that touchesvscode-extension/.