Skip to content

chat: remove Preview label and customizationsMenu.enabled setting#307744

Draft
joshspicer wants to merge 1 commit intomainfrom
copilot/inadequate-mollusk
Draft

chat: remove Preview label and customizationsMenu.enabled setting#307744
joshspicer wants to merge 1 commit intomainfrom
copilot/inadequate-mollusk

Conversation

@joshspicer
Copy link
Copy Markdown
Member

Summary

The Chat Customizations editor is no longer behind a preview gate. This PR:

  • Removes the (Preview) suffix from the "Open Customizations" and "Customizations" command titles
  • Removes the chat.customizationsMenu.enabled setting and its ChatCustomizationMenuEnabled constant
  • Simplifies all when-clauses/preconditions to only check ChatContextKeys.enabled instead of also checking the now-removed setting
  • Removes the legacy gear submenu fallback that was shown when the setting was disabled
  • Cleans up unused ChatConfiguration imports from 3 files
  • Updates AI_CUSTOMIZATIONS.md documentation to reflect the removal

Changes by file

File Change
constants.ts Remove ChatCustomizationMenuEnabled enum member
chat.contribution.ts Remove setting registration
aiCustomizationManagement.contribution.ts Remove (Preview) from titles, simplify preconditions, remove unused import
chatActions.ts Simplify when-clauses, remove legacy gear submenu fallback
chatOpenAgentDebugPanelAction.ts Simplify when-clause, remove unused import
toolSetsContribution.ts Simplify when-clause, remove unused import
agentTitleBarStatusWidget.ts Remove setting check from shouldForceHiddenAgentStatus and config change listeners
commandCenterControl.ts Remove constant and setting check from compact-mode logic
AI_CUSTOMIZATIONS.md Remove references to the deleted setting

Remove the "(Preview)" suffix from the Chat Customizations command
titles and remove the `chat.customizationsMenu.enabled` setting that
gated the feature. The customizations editor is now always available
when chat is enabled.

- Remove ChatCustomizationMenuEnabled constant and setting registration
- Simplify when-clauses to only check ChatContextKeys.enabled
- Remove legacy gear submenu fallback for disabled state
- Clean up unused imports across 3 files
- Update AI_CUSTOMIZATIONS.md documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 22:43
Copy link
Copy Markdown
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 removes the preview gating around the Chat Customizations editor by deleting the chat.customizationsMenu.enabled setting, dropping the (Preview) suffix from related command titles, and simplifying all preconditions/when-clauses to only depend on ChatContextKeys.enabled.

Changes:

  • Removed chat.customizationsMenu.enabled / ChatCustomizationMenuEnabled and updated all gating to rely on ChatContextKeys.enabled.
  • Updated command titles to remove (Preview) for Customizations-related commands.
  • Removed the legacy gear submenu fallback and updated docs to reflect the setting removal.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/constants.ts Removes ChatCustomizationMenuEnabled from ChatConfiguration.
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Removes configuration registration for chat.customizationsMenu.enabled.
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.ts Updates Customizations command titles; simplifies preconditions to ChatContextKeys.enabled.
src/vs/workbench/contrib/chat/browser/actions/chatActions.ts Simplifies when-clauses and removes the legacy gear submenu fallback.
src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.ts Simplifies ViewTitle when-clause and removes unused import.
src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.ts Simplifies ViewTitle when-clause and removes unused import.
src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.ts Removes references to the deleted setting from hidden-status logic and config listeners.
src/vs/workbench/browser/parts/titlebar/commandCenterControl.ts Removes the deleted setting from compact-mode logic.
src/vs/sessions/AI_CUSTOMIZATIONS.md Updates documentation to remove references to the deleted setting.

Copilot's findings

  • Files reviewed: 9/9 changed files
  • Comments generated: 2

Comment on lines 1456 to 1470
@@ -1465,20 +1465,9 @@ export function registerChatActions() {
when: ContextKeyExpr.and(
ChatContextKeys.enabled,
ContextKeyExpr.equals('view', ChatViewId),
ContextKeyExpr.has(`config.${ChatConfiguration.ChatCustomizationMenuEnabled}`)
),
order: 6
});
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

CHAT_CONFIG_MENU_ID no longer appears to be surfaced anywhere after removing the ViewTitle submenu entry (there are no remaining submenu: CHAT_CONFIG_MENU_ID / createMenu(CHAT_CONFIG_MENU_ID) usages in the repo). That means items contributed only to CHAT_CONFIG_MENU_ID (e.g. Plugins, Instructions/Skills management, MCP Servers, etc.) will stop showing up in the Chat UI. Consider either (1) reintroducing a ViewTitle submenu/overflow entry to expose CHAT_CONFIG_MENU_ID, or (2) migrating remaining contributions off CHAT_CONFIG_MENU_ID to MenuId.ViewTitle and then removing the menu id entirely.

Copilot uses AI. Check for mistakes.
## Settings

Settings use the `chat.customizationsMenu.` and `chat.customizations.` namespaces:
Settings use the `chat.customizations.` namespace:
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

The doc now states that settings use only the chat.customizations. namespace, but the codebase still contains at least one chat.customizationsMenu.* key (chat.customizationsMenu.userStoragePath is set as a sessions default override in src/vs/sessions/contrib/configuration/browser/configuration.contribution.ts). Consider clarifying the wording here (e.g., "User-facing settings use...") or renaming/removing the remaining chat.customizationsMenu.* key to avoid confusion.

Suggested change
Settings use the `chat.customizations.` namespace:
User-facing settings use the `chat.customizations.` namespace:

Copilot uses AI. Check for mistakes.
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