Requirements
The extension does not bundle a scanner. It shells out to theaislop CLI you already have installed and parses the output of aislop scan <path> --json. Install the CLI globally before activating the extension:
If the CLI is not found on startup, the extension shows a friendly prompt rather than crashing. You can suppress the prompt by pointing
aislop.path at a local binary instead of relying on a global install.Features
Inline squiggles
Findings from all engines appear as VS Code diagnostics with the rule ID (
engine/rule) and message at the reported line and column.Status-bar score
The latest 0–100 score is always visible in the status bar. Click it to trigger an immediate workspace re-scan.
Scan on save
Every time you save a file, the extension re-scans it and refreshes diagnostics. Catch regressions before you commit.
Scan Workspace command
Run aislop: Scan Workspace from the Command Palette to score your entire project on demand.
Installing the extension
Search for aislop in the VS Code Extensions panel (Ctrl+Shift+X / Cmd+Shift+X) and click Install, or install it from the VS Code Marketplace page.
Settings
Configure the extension in your VS Code settings (settings.json or the Settings UI):
| Setting | Default | Description |
|---|---|---|
aislop.path | "aislop" | Path to the aislop CLI executable. Accepts an absolute path or any name resolvable on PATH. |
aislop.scanOnSave | true | Re-scan a file automatically when it is saved. Set to false to scan only on demand. |
Example settings.json
Running a workspace scan
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), type aislop, and select aislop: Scan Workspace (aislop.scanWorkspace). The extension runs aislop scan against your workspace root, populates the Problems panel with all findings, and updates the status-bar score.
Using a local binary
If you manage aislop as a project dependency rather than a global install, pointaislop.path at the local binary:
How it works
The extension is a thin shell around the CLI. On activation and on each save, it runsaislop scan <path> --json, parses the structured JSON output, and maps each diagnostic to a VS Code Diagnostic object in the aislop diagnostic collection. Findings are cleared and repopulated on every scan, so stale results never linger after you fix an issue.
Because the extension shells out to the CLI rather than bundling a scanner, you always get the same results in the editor as you would running
aislop scan in the terminal — including any rules and thresholds configured in .aislop/config.yml.