Make index in closeOtherTabs and closeTabsAfter optional#7390
Conversation
zadjii-msft
left a comment
There was a problem hiding this comment.
Meh, these are nits. I'd love to hear other people's thoughts
miniksa
left a comment
There was a problem hiding this comment.
Looks fine. Req changes due to the handled true/false discussion.
|
This is not specific to your PR, but we need to make sure that "after" works properly when the UI is in RTL layout . . . if that still exists |
|
@msftbot merge this in 1 minutes |
|
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
## 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. (cherry picked from commit 2fdc88f)
Summary of the Pull Request
The
indexaction argument is now optional forcloseOtherTabsandcloseTabsAfter. Whenindexis not defined,indexis set to the focused tab's index.Also, adds the non-index version of these actions to defaults.json.
PR Checklist
indexparam ofcloseOtherTabs,closeTabsAftershould be optional #7181Validation Steps Performed
Opened 4 tabs and ran closeOtherTabs/closeTabsAfter from command palette.