Skip to content

Only enable copilotCLI.addFileReference command when the setting is enabled#3593

Merged
DonJayamanne merged 1 commit intomainfrom
alexweininger/orange-banana
Feb 10, 2026
Merged

Only enable copilotCLI.addFileReference command when the setting is enabled#3593
DonJayamanne merged 1 commit intomainfrom
alexweininger/orange-banana

Conversation

@alexweininger
Copy link
Member

Fixes microsoft/vscode#294006

I didn't change the keybinding, we can discuss that as a team later @rebornix @DonJayamanne. But for now this will fix the main issue

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures the github.copilot.chat.copilotCLI.addFileReference command is only available when Copilot CLI integration is enabled, preventing the command from being exposed when its backing contribution is not initialized.

Changes:

  • Adds a command-level enablement condition tied to github.copilot.chat.cli.integration.enabled.
  • Gates the command’s editor context menu entries behind the same configuration setting.
  • Gates the command’s keybinding behind the same configuration setting.

@DonJayamanne DonJayamanne added this pull request to the merge queue Feb 9, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 9, 2026
Merged via the queue into main with commit 7bfdaf2 Feb 10, 2026
25 checks passed
@DonJayamanne DonJayamanne deleted the alexweininger/orange-banana branch February 10, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github.copilot.chat.copilotCLI.addFileReference takes breadcrumbs keyboard shortcut and doesn't work

4 participants