Skip to content

Conversation

@erezak
Copy link
Contributor

@erezak erezak commented Dec 14, 2025

Fixes #253310

Summary

Chat: Apply in Editor currently appears in the Command Palette (F1) even when launching VS Code on an empty workspace with no Copilot setup. This PR hides the command from the Command Palette while keeping the action available from its intended chat/codeblock UI entry points.

Change

  • Set f1: false for the "Apply in Editor" chat codeblock action registration.

Testing

  • Launch VS Code on an empty workspace, with no Copilot setup
  • Open Command Palette (F1)
  • Search for "Chat: Apply in Editor"
  • Confirm the command does not appear

Copilot AI review requested due to automatic review settings December 14, 2025 22:47
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 hides the "Chat: Apply in Editor" command from the Command Palette (F1) to prevent it from appearing in contexts where it cannot be used effectively, such as when launching VS Code on an empty workspace with no Copilot setup. The command remains accessible through its intended UI entry points (chat codeblock menus and keyboard shortcuts).

Key Changes

  • Modified the "Apply in Editor" action registration to set f1: false, preventing it from appearing in the Command Palette

@aeschli aeschli enabled auto-merge (squash) December 16, 2025 20:34
@aeschli
Copy link
Contributor

aeschli commented Dec 16, 2025

Thanks!

@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 16, 2025
title: localize2('interactive.applyInEditor.label', "Apply in Editor"),
precondition: ChatContextKeys.enabled,
f1: true,
f1: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this prevent getting a tooltip for the button?

@aeschli aeschli merged commit 4dcdc3c into microsoft:main Dec 16, 2025
22 of 23 checks passed
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.

Chat: Apply in Editor appears in Command Palette

3 participants