Skip to content

Detect VS Code bundled built-in extensions in ai_tools - #50768

Draft
juan-fdz-hawa wants to merge 1 commit into
mainfrom
50705-ai_tools-ide_plugins-cant-detect-vs-codes-built-in-github-copilot-chat
Draft

Detect VS Code bundled built-in extensions in ai_tools#50768
juan-fdz-hawa wants to merge 1 commit into
mainfrom
50705-ai_tools-ide_plugins-cant-detect-vs-codes-built-in-github-copilot-chat

Conversation

@juan-fdz-hawa

@juan-fdz-hawa juan-fdz-hawa commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Resolves #50705

The ide_plugins collector only scanned the user profile's extensions directory. GitHub Copilot Chat ships bundled inside the application from VS Code 1.130+ and the standalone marketplace extension is deprecated, so an actively-enabled Copilot returned zero rows.

Scan application install directories for bundled extensions, covering both the macOS .app/Contents/Resources/app/extensions layout and the Windows/Linux resources/app/extensions layout. Display names are resolved from package.nls.json, and rows are deduped against the user-profile pass since VS Code gives the profile copy precedence.

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.

  • Input data is properly validated, SELECT * is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters.

  • Timeouts are implemented and retries are limited to avoid infinite loops

  • If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes

Testing

For unreleased bug fixes in a release candidate, one of:

  • Confirmed that the fix is not expected to adversely impact load test results
  • Alerted the release DRI if additional load testing is needed

Database migrations

  • Checked schema for all modified table for columns that will auto-update timestamps during migration.
  • Confirmed that updating the timestamps is acceptable, and will not cause unwanted side effects.
  • Ensured the correct collation is explicitly set for character columns (COLLATE utf8mb4_unicode_ci).

New Fleet configuration settings

  • Setting(s) is/are explicitly excluded from GitOps

If you didn't check the box above, follow this checklist for GitOps-enabled settings:

  • Verified that the setting is exported via fleetctl generate-gitops
  • Verified the setting is documented in a separate PR to the GitOps documentation
  • Verified that the setting is cleared on the server if it is not supplied in a YAML file (or that it is documented as being optional)
  • Verified that any relevant UI is disabled when GitOps mode is enabled

fleetd/orbit/Fleet Desktop

  • Verified compatibility with the latest released version of Fleet (see Must rule)
  • If the change applies to only one platform, confirmed that runtime.GOOS is used as needed to isolate changes
  • Verified that fleetd runs on macOS, Linux and Windows
  • Verified auto-update works from the released version of component to the new version (see tools/tuf/test)

Summary by CodeRabbit

  • New Features

    • Added discovery of supported AI extensions bundled with VS Code-family applications.
    • Supports bundled extension layouts across macOS, Windows, and Linux.
    • Resolves localized extension names where available.
    • Prevents duplicate results when an extension is already installed in the user profile.
  • Bug Fixes

    • Improved extension detection and filtering to exclude unrelated or invalid entries.

Resolves #50705

The ide_plugins collector only scanned the user profile's extensions
directory. GitHub Copilot Chat ships bundled inside the application from
VS Code 1.130+ and the standalone marketplace extension is deprecated, so
an actively-enabled Copilot returned zero rows.

Scan application install directories for bundled extensions, covering
both the macOS .app/Contents/Resources/app/extensions layout and the
Windows/Linux resources/app/extensions layout. Display names are resolved
from package.nls.json, and rows are deduped against the user-profile pass
since VS Code gives the profile copy precedence.
@juan-fdz-hawa

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6540dafb-0186-4408-9b2e-46ca2299695a

📥 Commits

Reviewing files that changed from the base of the PR and between f656ac5 and 5b4d9cd.

📒 Files selected for processing (4)
  • orbit/pkg/table/ai_tools/internal/ide/ide_test.go
  • orbit/pkg/table/ai_tools/internal/ide/vscode.go
  • orbit/pkg/table/ai_tools/internal/ide/vscode_builtin.go
  • orbit/pkg/table/ai_tools/internal/ide/vscode_builtin_test.go

Walkthrough

The VS Code family scanner now detects AI extensions bundled inside supported applications on macOS, Windows, and Linux. It searches platform-specific application layouts, reads extension manifests, resolves localized display names, and preserves profile-extension precedence. Manifest conversion and AI classification are centralized in a helper. Tests cover platform detection, metadata, localization, filtering, duplicate suppression, and temporary-home isolation.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: detecting VS Code bundled built-in extensions in ai_tools.
Description check ✅ Passed The description explains the issue, root cause, platforms, solution, and linked issue, but leaves the repository checklist unchecked.
Linked Issues check ✅ Passed The changes satisfy issue #50705 by scanning bundled extensions across supported platforms, resolving names, filtering AI extensions, and deduplicating results.
Out of Scope Changes check ✅ Passed The modified implementation and tests are directly related to detecting and reporting VS Code bundled extensions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 50705-ai_tools-ide_plugins-cant-detect-vs-codes-built-in-github-copilot-chat

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.16667% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.38%. Comparing base (3de43c8) to head (5b4d9cd).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
.../pkg/table/ai_tools/internal/ide/vscode_builtin.go 75.34% 13 Missing and 5 partials ⚠️
orbit/pkg/table/ai_tools/internal/ide/vscode.go 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #50768      +/-   ##
==========================================
+ Coverage   68.35%   68.38%   +0.02%     
==========================================
  Files        3957     3962       +5     
  Lines      254097   255027     +930     
  Branches    13530    13530              
==========================================
+ Hits       173681   174390     +709     
- Misses      64860    65033     +173     
- Partials    15556    15604      +48     
Flag Coverage Δ
backend 69.61% <79.16%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

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.

ai_tools: ide_plugins can't detect VS Code's built-in GitHub Copilot Chat

1 participant