VS Code commands
Actions available in MG Lab from the sidebar, editor menu, and Command Palette.
Open the Command Palette with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) and type MergeGuard.
| Command | What it does |
|---|---|
MergeGuard: Sign In | Start browser sign-in with your MergeGuard account. |
MergeGuard: Sign Out | Remove the stored extension token from this machine. |
MergeGuard: Review Current File | Send the active file to MergeGuard for AI review. Also available from the sidebar and editor context menu. |
MergeGuard: Review Git Diff | Review uncommitted changes in the open workspace (git diff against HEAD, or unstaged changes). Large diffs are truncated to the first 40 files. |
MergeGuard: Security Scan | Scan lockfiles and infrastructure-as-code files — package-lock.json, npm-shrinkwrap.json, Dockerfile, Terraform (*.tf, *.tfvars), YAML, and .env files — using OSV and Trivy where available. |
MergeGuard: Explain Issue | Explain a selected or recent finding in plain language and offer an AI-generated fix when possible. |
MergeGuard: Clear Findings | Clear sidebar findings and editor diagnostics from the last review or scan. |
Where results appear
- Sidebar — summary, severity badges, and clickable findings (jumps to file and line)
- Problems panel — diagnostics with severity squiggles in the editor
- Output → MergeGuard — full text log with risk score and suggestions
Usage limits
Reviews and scans use the same plan and monthly quota as GitHub and GitLab. Your remaining reviews are shown in the sidebar after sign-in. See Plans & limits.