Terminal does not close... #19551

Closed
opened 2026-01-31 06:46:57 +00:00 by claunia · 3 comments
Owner

Originally created by @Luuk34 on GitHub (Mar 18, 2023).

Windows Terminal version

1.17.1023

Windows build number

10.0.22621.1413

Other Software

No response

Steps to reproduce

When, using Windows Terminl,

  1. starting Notepad
  2. then typing exit
  3. the terminal window will close.

When, using Windows Terminl,

  1. starting code (to run "Visual Studio Code")
  2. then typing exit
  3. the terminal window does not close,

iNeSc

Expected Behavior

Expected will be the same behaviour.

Actual Behavior

see: "steps to reproduce"

Originally created by @Luuk34 on GitHub (Mar 18, 2023). ### Windows Terminal version 1.17.1023 ### Windows build number 10.0.22621.1413 ### Other Software _No response_ ### Steps to reproduce When, using Windows Terminl, 1) starting Notepad 2) then typing `exit` 3) the terminal window will close. When, using Windows Terminl, 1) starting code (to run "Visual Studio Code") 2) then typing `exit` 3) the terminal window does not close, ![iNeSc](https://user-images.githubusercontent.com/7850737/226100235-3d356247-9b04-4310-b50f-4cd1d41e88e9.png) ### Expected Behavior Expected will be the same behaviour. ### Actual Behavior see: "steps to reproduce"
claunia added the Issue-BugResolution-External labels 2026-01-31 06:46:58 +00:00
Author
Owner

@Luuk34 commented on GitHub (Mar 18, 2023):

The relevant section from my settings.json

            {
                "closeOnExit": "always",
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt",
                "startingDirectory": "D:\\TEMP"
            },
@Luuk34 commented on GitHub (Mar 18, 2023): The relevant section from my settings.json ``` { "closeOnExit": "always", "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden": false, "name": "Command Prompt", "startingDirectory": "D:\\TEMP" }, ```
Author
Owner

@DHowett commented on GitHub (Mar 18, 2023):

Unfortunately, this is working as expected! There is a long-standing bug in VSCode where they keep the console handle open after launching.

/dup https://github.com/microsoft/vscode/issues/66750

@DHowett commented on GitHub (Mar 18, 2023): Unfortunately, this is working as expected! There is a long-standing bug in VSCode where they keep the console handle open after launching. /dup https://github.com/microsoft/vscode/issues/66750
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 18, 2023):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Mar 18, 2023): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19551