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.

CommandWhat it does
MergeGuard: Sign InStart browser sign-in with your MergeGuard account.
MergeGuard: Sign OutRemove the stored extension token from this machine.
MergeGuard: Review Current FileSend the active file to MergeGuard for AI review. Also available from the sidebar and editor context menu.
MergeGuard: Review Git DiffReview uncommitted changes in the open workspace (git diff against HEAD, or unstaged changes). Large diffs are truncated to the first 40 files.
MergeGuard: Security ScanScan 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 IssueExplain a selected or recent finding in plain language and offer an AI-generated fix when possible.
MergeGuard: Clear FindingsClear 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.