Add inlineChat.askInChat setting to toggle Ask in Chat vs Inline Chat#303161
Merged
Add inlineChat.askInChat setting to toggle Ask in Chat vs Inline Chat#303161
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new inlineChat.askInChat configuration toggle to control whether chat-owned files (files belonging to a chat editing session) route Cmd/Ctrl+I into “Ask in Chat” vs opening regular Inline Chat.
Changes:
- Register new boolean setting
inlineChat.askInChat(defaulttrue) and expose it as a context expression (CTX_ASK_IN_CHAT_ENABLED). - Update Inline Chat actions/keybindings/menus so Cmd/Ctrl+I and the inline input’s Enter behavior switch between “Ask in Chat” and regular Inline Chat based on the setting.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/inlineChat/common/inlineChat.ts | Adds the new setting + context expression for inlineChat.askInChat. |
| src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts | Applies the setting to Cmd/Ctrl+I routing and inline input send/queue/menu visibility. |
You can also share your feedback on Copilot code review. Take the survey.
src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
lszomoru
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
inlineChat.askInChatboolean setting (default:true) that controls whether Cmd+I / Ctrl+I in a file belonging to a chat editing session opens Ask in Chat or regular Inline Chat.When enabled (default): behavior is unchanged - the keybinding triggers Ask in Chat for chat-owned files.
When disabled: the keybinding always opens regular Inline Chat, even for chat-owned files.
Fixes #300439