Skip to content

feat(terminal): add 'Kill Other Terminals' command#307880

Open
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/terminal-kill-others-295740
Open

feat(terminal): add 'Kill Other Terminals' command#307880
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/terminal-kill-others-295740

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

Summary

Adds a new workbench.action.terminal.killOthers command that kills all terminals except the currently active one, mirroring the existing Close Others action available in the editor tab context menu.

Fixes #295740

Changes

  • src/vs/workbench/contrib/terminal/common/terminal.ts — register new TerminalCommandId.KillOthers
  • src/vs/workbench/contrib/terminal/browser/terminalActions.ts — implement the action (iterates c.service.instances, disposes all except the active one)

Test plan

  • Open 3+ terminals
  • Run Kill Other Terminals from the command palette
  • Verify only the active terminal remains open
  • Verify the command is available when any terminal is open

🤖 Generated with Claude Code

Adds a new `workbench.action.terminal.killOthers` command that kills all
terminals except the currently active one, mirroring the existing
"Close Others" action available in the editor tab context menu.

Fixes microsoft#295740

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Feature request: "Kill Other Terminals" button in terminal pane

2 participants