Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple settings tabs from being persisted #17169

Merged
merged 1 commit into from
May 2, 2024

Conversation

zadjii-msft
Copy link
Member

Re-add some machinery to special case settings tabs. When we're going to persist a tab that only has a single settings pane in it, we'll now promote that to the first-class "openSettings" action. This will allow our other code in TerminalPage to route multiple settings tabs all to the same tab.

This of course doesn't stop you from opening multiple settings tabs with { "command": {"action": "newTab", "type": "settings"} } actions. If we did that, then that would prevent someone from having a settings pane in the first pane, and a terminal to the right.

Closes #17070

@DHowett
Copy link
Member

DHowett commented May 1, 2024

If we did that, then that would prevent someone from having a settings pane in the first pane, and a terminal to the right.

To be fair, we legitimately did want to prevent this. We didn't widen the scope of non-terminal panes to include "you can open a settings anyway" for 1.21...

@carlos-zamora carlos-zamora added this pull request to the merge queue May 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 2, 2024
@DHowett DHowett added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit a5835b0 May 2, 2024
20 checks passed
@DHowett DHowett deleted the dev/migrie/b/double-double-settings branch May 2, 2024 04:45
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.

[1.21] You can have a restored settings tab and open a second settings tab
4 participants