CodeClone for Visual Studio Code
Deterministic code coverage analysis — surface actionable test coverage insights.
Features
- Analyze Repository — run coverage analysis on your workspace
- Problems Panel — view findings as VS Code diagnostics with severity
- Tree View — browse results grouped by severity with click-to-navigate
- Export as Markdown — export the latest report as a formatted
.md document
- Copy Report JSON — copy raw analysis JSON to clipboard
Keyboard Shortcuts
| Shortcut |
Command |
Ctrl+Alt+A (Cmd+Alt+A on Mac) |
Analyze Repository |
Requirements
- CodeClone CLI installed:
pip install codeclone-cli
- VS Code 1.85.0 or higher
Commands
| Command |
Description |
| CodeClone: Analyze Repository |
Run analysis on current workspace |
| CodeClone: Show Last Report |
Display last analysis in Output channel |
| CodeClone: Copy Report JSON |
Copy raw JSON to clipboard |
| CodeClone: Export Report as Markdown |
Export report as formatted markdown |
| CodeClone: Configure CLI Path |
Open settings |
| CodeClone: Refresh |
Re-run analysis |
Settings
| Setting |
Default |
Description |
codeclone.cliPath |
"" |
Absolute path to codeclone CLI (auto-discovers if empty) |
codeclone.useWorkspaceVenv |
true |
Look for CLI in workspace .venv |
codeclone.timeoutSeconds |
60 |
CLI command timeout (5–600 s) |
codeclone.autoAnalyzeOnOpen |
false |
Run analysis when opening workspace |
codeclone.logLevel |
"info" |
Output channel log level |
How It Works
This extension is a thin wrapper around the codeclone CLI:
- Discovers CLI (settings → venv → PATH → python -m)
- Runs
codeclone analyze <repo> --json
- Validates output against frozen schema (v0.1)
- Publishes diagnostics to Problems panel
Severity comes from each diagnostic's severity field, not from the overall status.
CLI Discovery
- User Setting —
codeclone.cliPath (explicit wins)
- Workspace Venv —
.venv/bin/codeclone or .venv/Scripts/codeclone.exe
- PATH —
codeclone executable
- Python Module —
python -m codeclone_cli
Troubleshooting
CLI Not Found
pip install codeclone-cli
Or set codeclone.cliPath to the full path in settings.
Incompatible Schema Version
pip install --upgrade codeclone-cli
View Output
Open the Output panel (Ctrl+Shift+U) and select "CodeClone".
License
MIT
| |