Skip to content

Fix Ctrl+N replacing the current Chat Editor - #333122

Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
mainfrom
dev/dmitriv/ctrl-n-new-chat-editor
Aug 28, 2026
Merged

Fix Ctrl+N replacing the current Chat Editor#333122
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
mainfrom
dev/dmitriv/ctrl-n-new-chat-editor

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator
  • keep the existing Chat Editor session open when Ctrl+N is pressed
  • let the New Chat Editor action open a separate editor in that context
  • add regression coverage for chat view and Chat Editor keybinding scopes

Fixes #333119

Keep the existing chat editor open by limiting the clear-current-chat shortcut to non-editor chat surfaces. Add regression coverage for both chat view and chat editor contexts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 28, 2026 08:03
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added bug Issue identified by VS Code Team member as probable bug chat-editor labels Aug 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

Review tier: Balanced
Findings: None

What changed in this PR

Fixes Ctrl+N handling so a focused Chat Editor opens a separate editor without replacing its current session.

Changes:

  • Excludes Chat Editors from the existing “New Chat” keybinding scope.
  • Adds regression coverage for Chat view and Chat Editor scopes.
File Description
chatNewActions.ts Restricts the clear-chat shortcut to non-editor chat contexts.
chatNewActions.test.ts Verifies Ctrl+N resolves to the appropriate action by context.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Inspect the New Chat action descriptor directly so the regression test does not pollute the command registry and interfere with ChatTipService tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 35b7186 into main Aug 28, 2026
37 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the dev/dmitriv/ctrl-n-new-chat-editor branch August 28, 2026 09:11
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug chat-editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ctrl+N replaces the existing Chat Editor session instead of opening a new editor

3 participants