Hand-maintained TypeScript extension. Reads accepted specs from .specsync/specs/ (same store as the GitHub App). Confidence is always 0–1.
Do not regenerate this package from the Probot app. The old
src/vscode-ui.tscode generator was removed in Phase 8.
- SpecLens / hover — CodeLens and hover for functions with stored specs
- Suggestions view — Activity-bar tree (
specsync.suggestions) with heuristic suggestions - Edit / show — Webview commands that read/write
.specsync/specs/*.json - Lean proofs — Run/cancel Lean on
specs/and.specsync/lean/; artifacts under.specsync/artifacts/
- VS Code
^1.74.0(seeengines.vscodeinpackage.json) - Lean 4 on
PATH(or setspecsync.leanPath) for proof commands
cd vscode-extension
npm install
npm run compileWatch mode: npm run watch. Output goes to out/ (main: ./out/extension.js).
- Open this folder (or the monorepo) in VS Code / Cursor
- Press F5 (add a launch config if needed) with
mainpointing atout/extension.js
| Setting | Default | Description |
|---|---|---|
specsync.specsDir |
.specsync/specs |
Accepted spec JSON directory (workspace-relative) |
specsync.leanPath |
lean |
Lean executable |
specsync.confidenceThreshold |
0.7 |
Minimum confidence (0–1) for CodeLens/hover |
SpecSync: Show SpecificationSpecSync: Edit Specification(saves back to.specsync/specs/)SpecSync: Run Lean Proof/Cancel Lean ProofSpecSync: Refresh Specs from .specsync/
Matches the root SpecStore:
.specsync/specs/{sanitizedFilePath}__{functionName}.json
Each file is a StoredSpec with nested contract and confidence in [0, 1].
MIT (same as the root project).