-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
closeTab warning (When more then one pane is open, moved from original) #7077
closeTab warning (When more then one pane is open, moved from original) #7077
Conversation
Add a dialog and settings
New misspellings found, please review:
To accept these changes, run the following commands
✏️ Contributor please read thisBy default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
If the listed items are:
See the 🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The :check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the interest of transparency, I'm going to keep this one blocked for the same reason I blocked the original PR:
I think before this merges I want to have a resolution of how a setting to disable this would work. I've discussed this a bit more in #6549 (comment), but not really taken to any conclusions. I don't think that you need to be the person to implement all the appropriate settings, but I want to make sure that we've got our eye on that before we merge this.
The code here is super straightforward and I'd sign off, but I want to make sure there's a plan for how the settings will work in the future.
I did implement a Globalappsetings Boolean just like the warning with close all tab dialog |
However, if you always want to be prompted I guess we can create a new issue for it (since the current Boolean cannot support that) |
@zadjii-msft We could possibly add a second boolean setting: "alwaysWarnCloseTab". But for now, there is a setting to disable this. |
@zadjii-msft Can you please review this? For always warning when close tab, I think that is something for a separate pr |
As I mentioned before, I want to make sure there's a plan here for the actual settings here before signing off. The code in this PR isn't all that tricky, but I'm worried that we'll get the necessary approvals from other team members and auto-merge this without a plan. So I'm blocking on the "make a plan" element of this PR first and foremost. |
But you can block this dialog from appearing in settings. Look at my commit. @zadjii-msft |
I'm more concerned about making sure that we have a comprehensive plan for all the future variants of this scenario. I don't want to just slap another setting in there that'll make it harder for us to have a comprehensive solution to all the scenarios in #6549 |
Thank you so much for working on this! We've chosen to take the project in a slightly different direction, and make sure that this feature is fully specified before we commit to it. We'd love to have you back, of course, in the future! 😄 |
Please note that this is moved from the original, #5874 since that one's commits are a mess, I'm recreating it with a new fork and branch.
Summary of the Pull Request
Adds a dialog that warns the user when tab close is requested and more than one pane is open. The feature can be disabled in settings.
References
Closes #5301
PR Checklist
Validation Steps Performed
Manual