You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bundle the Python sources (cli.py, scanner.py, dashboard.py) inside the .vsix so the extension works standalone — the only end-user dependency is Python 3.8+ on PATH. The vscode:prepublish script 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). DashboardSidebar accepts an onShow callback wired to openDashboard(); in-flight startup coalescing on the host side keeps clicks idempotent.
Discover cli.py in 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 python on macOS; distro package manager on Linux). The Homebrew suggestion is hidden on Windows.
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-usage on PATH (Homebrew users) or a sibling cli.py in 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 .vsix as an artifact on every push to DEV/main that touches vscode-extension/.