Skip to content

feat: vscode and antigravity support in endpoint scan#727

Merged
KunalSin9h merged 4 commits into
mainfrom
feat/antigravity-support
May 14, 2026
Merged

feat: vscode and antigravity support in endpoint scan#727
KunalSin9h merged 4 commits into
mainfrom
feat/antigravity-support

Conversation

@KunalSin9h

Copy link
Copy Markdown
Member

No description provided.

@safedep

safedep Bot commented May 14, 2026

Copy link
Copy Markdown

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

@codecov

codecov Bot commented May 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.81250% with 54 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.21%. Comparing base (5c3895f) to head (0072ad7).

Files with missing lines Patch % Lines
pkg/aitool/antigravity.go 70.45% 9 Missing and 4 partials ⚠️
pkg/aitool/vscode.go 74.50% 9 Missing and 4 partials ⚠️
pkg/aitool/antigravity_cli.go 0.00% 12 Missing ⚠️
pkg/aitool/vscode_cli.go 0.00% 12 Missing ⚠️
pkg/aitool/registry.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #727      +/-   ##
==========================================
+ Coverage   12.09%   12.21%   +0.11%     
==========================================
  Files         363      367       +4     
  Lines       48903    49029     +126     
==========================================
+ Hits         5916     5988      +72     
- Misses      42521    42567      +46     
- Partials      466      474       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KunalSin9h KunalSin9h requested a review from arunanshub May 14, 2026 07:32
@arunanshub

Copy link
Copy Markdown
Contributor

Code review

Found 1 issue:

  1. vscode.go system-scope MCP config path is wrong~/.vscode/ is VS Code's extension cache directory, not the user configuration directory. Real VS Code user config (including mcp.json) lives at ~/.config/Code/User/ on Linux, ~/Library/Application Support/Code/User/ on macOS, and %APPDATA%\Code\User\ on Windows. The current code will silently find nothing for system-scope MCP discovery on every real VS Code installation. Project-scope (.vscode/mcp.json relative to projectDir) is correct. Compare with cursor.go which uses ~/.cursor/ — VS Code's equivalent would be the user data dir, not the extensions dir.

vet/pkg/aitool/vscode.go

Lines 39 to 45 in db40c9e

func (d *vscodeDiscoverer) EnumTools(_ context.Context, handler AIToolHandlerFn) error {
if d.config.ScopeEnabled(AIToolScopeSystem) {
vscodeDir := filepath.Join(d.homeDir, ".vscode")
for _, name := range []string{"mcp.json", "mcpservers.json", "mcp_config.json"} {
path := filepath.Join(vscodeDir, name)

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@KunalSin9h KunalSin9h requested a review from abhisek May 14, 2026 08:27
@KunalSin9h KunalSin9h merged commit 5e1a806 into main May 14, 2026
16 checks passed
@KunalSin9h KunalSin9h deleted the feat/antigravity-support branch May 14, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants