[PR #7390] Make index in closeOtherTabs and closeTabsAfter optional #26918

Closed
opened 2026-01-31 09:18:53 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/7390

State: closed
Merged: Yes


Summary of the Pull Request

The index action argument is now optional for closeOtherTabs and closeTabsAfter. When index is not defined, index is set to the focused tab's index.

Also, adds the non-index version of these actions to defaults.json.

PR Checklist

Validation Steps Performed

Opened 4 tabs and ran closeOtherTabs/closeTabsAfter from command palette.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7390 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request The `index` action argument is now optional for `closeOtherTabs` and `closeTabsAfter`. When `index` is not defined, `index` is set to the focused tab's index. Also, adds the non-index version of these actions to defaults.json. ## PR Checklist * [X] Closes #7181 * [X] CLA signed * [X] Tests passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [X] Schema updated. ## Validation Steps Performed Opened 4 tabs and ran closeOtherTabs/closeTabsAfter from command palette.
claunia added the pull-request label 2026-01-31 09:18:53 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26918