Extensions - VS Code
VS Code Extension
The GauntletCI VS Code extension surfaces change risk findings as inline diagnostic squiggles - the same red/yellow underlines you already rely on for compiler errors and linter warnings - without leaving your editor.
Prerequisites
- +VS Code 1.85.0 or later
- +.NET 8 SDK
- +GauntletCI CLI on your PATH (see below)
# Install the CLI first
$ dotnet tool install -g GauntletCI
Install the extension
Two ways to install - both take under a minute.
Option 1 - Extensions panel
- 1.Open VS Code
- 2.Press Ctrl+Shift+X (Cmd+Shift+X on macOS) to open the Extensions panel
- 3.Search for "GauntletCI"
- 4.Click Install on the EricCogen.gauntletci extension
Option 2 - Command line
The extension activates automatically when you open a workspace containing a .csproj or .sln file. No further setup is required if gauntletci is on your PATH.
Run your first analysis
Open a .NET project, stage or commit a change, then run analysis from the Command Palette.
- 1.Press Ctrl+Shift+P (Cmd+Shift+P on macOS) to open the Command Palette
- 2.Type "GauntletCI" to filter commands
- 3.Select "GauntletCI: Analyze Current Commit"
- 4.Findings appear as inline squiggles in the affected files
42public async Task<Result> ProcessOrder(int orderId)
43{
44 await _repository.SaveAsync(order);
45 return Result.Ok(order.Id);
Block findings show as red underlines (errors). Warn findings show as yellow underlines (warnings). Hover any underline for the full finding detail.
Status bar
The GauntletCI status bar item sits in the bottom bar and shows the current state at a glance.
| State | Display |
|---|---|
| Idle (no findings) | $(shield) GauntletCI |
| Running | $(shield) GauntletCI: analyzing... |
| Findings present | $(shield) GauntletCI: 2 block / 1 warn |
| Error | $(shield) GauntletCI: error |
Commands
| Command | Description |
|---|---|
| GauntletCI: Analyze Current Commit | Run analysis on HEAD and display findings as inline diagnostics. |
| GauntletCI: Clear Findings | Remove all GauntletCI diagnostics from the editor and reset the status bar. |
Settings
Configure via settings.json or the Settings UI (search "GauntletCI").
{
// Path to the gauntletci CLI (default: "gauntletci" on PATH)
"gauntletci.executable": "gauntletci",
// strict | balanced | permissive
"gauntletci.sensitivity": "balanced",
// Run analysis automatically when any file is saved
"gauntletci.analyzeOnSave": false,
// Disable LLM enrichment (recommended for fast local analysis)
"gauntletci.noLlm": true
}| Setting | Default | Description |
|---|---|---|
| gauntletci.executable | "gauntletci" | Path to the CLI. Useful if gauntletci is not on the system PATH. |
| gauntletci.sensitivity | "balanced" | strict | balanced | permissive. Controls which confidence levels surface findings. |
| gauntletci.analyzeOnSave | false | Automatically run analysis every time a file is saved in the workspace. |
| gauntletci.noLlm | true | Disable LLM enrichment. Keep enabled for fast, fully offline analysis. |
Analyze on save
Set gauntletci.analyzeOnSave to true to run analysis automatically whenever you save any file in the workspace. This gives you a continuous feedback loop as you code.
gauntletci analyze --staged which only sees staged changes. Unstaged edits are not included. This is by design - analysis reflects what would be committed.Output channel
Full structured output from each analysis run is written to the GauntletCI output channel. Open it from View > Output and select GauntletCI from the dropdown. The channel shows every finding with evidence, suggested action, and the raw exit code.
Troubleshooting
Extension not activating
The extension only activates for workspaces containing a .csproj or .sln file. Open a .NET project folder, not a loose file.
"gauntletci: command not found"
Install the CLI with dotnet tool install -g GauntletCI, then ensure $HOME/.dotnet/tools is on your PATH. Restart VS Code after adding it to PATH.
No findings appear after analysis
Check the GauntletCI output channel for errors. Confirm you have staged or committed changes in the workspace - analyzing an unmodified HEAD will produce no findings.
