Skip to content

Fix behavior of terminal.integrated.confirmOnExit#240074

Merged
Tyriar merged 2 commits intomicrosoft:mainfrom
dmotte:pr-fix-terminal-confirmonexit
Feb 13, 2025
Merged

Fix behavior of terminal.integrated.confirmOnExit#240074
Tyriar merged 2 commits intomicrosoft:mainfrom
dmotte:pr-fix-terminal-confirmonexit

Conversation

@dmotte
Copy link
Contributor

@dmotte dmotte commented Feb 8, 2025

First of all, thank you so much for providing this fantastic editor 🙂 I use it basically every day and it's amazing. Thank you all guys, and keep up the good work!

This PR fixes #235575.

Note that recently there was another PR (#236588) that was supposed to fix it, but actually it didn't, because now we have this:

image_2025-02-08_14-40-11

The current PR should definitely fix this issue and avoid showing that popup message if there are no foreground terminals opened.

How to test the changes

You can just try to open a Python project in a VSCode editor with the Python extension installed. That extension spawns background terminals, and those currently trigger the popup message of the screenshot I put above (when terminal.integrated.confirmOnExit is set to always). With my changes, that shouldn't happen anymore.

@dmotte
Copy link
Contributor Author

dmotte commented Feb 8, 2025

@microsoft-github-policy-service agree

@Daye2468
Copy link

dmotte:pr-fix-terminal-confirmonexit

@Daye2468
Copy link

pr-fix-terminal-confirmonexit

@Daye2468
Copy link

A first-level heading

Copy link
Collaborator

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for the PR!

@Tyriar Tyriar enabled auto-merge February 13, 2025 15:55
@Tyriar Tyriar merged commit fc08bb5 into microsoft:main Feb 13, 2025
7 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Do you want to terminate the active terminal session?" on close for background terminals

4 participants