VS Code troubleshooting
Common issues when signing in or running reviews in MG Lab.
Sign-in does not complete
- Use the original editor window where you clicked Sign In — not a new window that may open from the browser redirect.
- Wait up to a minute after closing the browser tab; the extension polls the API to finish sign-in.
- Run
MergeGuard: Sign Inagain from the Command Palette if the first attempt timed out (sign-in expires after 5 minutes). - Confirm you completed Connect GitHub or GitLab in the browser — extension sign-in requires an active MergeGuard account.
Unauthorized or session expired
If a review returns an unauthorized error, run MergeGuard: Sign Out, then MergeGuard: Sign In again to refresh your token.
Review Git Diff finds nothing
- Open a folder that contains a git repository, not a single loose file.
- Make sure you have uncommitted changes — staged or unstaged — to review.
Security Scan finds no files
The scan looks for lockfiles and IaC in the workspace (e.g. package-lock.json, Dockerfile, Terraform). If your repo stores these elsewhere or uses a different lockfile format, add or open the relevant files in the workspace root.
Monthly limit reached
Editor reviews count toward the same monthly quota as PR/MR reviews. Check your plan on the sidebar or see Plans & limits.
Need more help? Contact support with your editor (VS Code, Cursor, etc.) and the action you tried.