Launching VSCode Also Opens cmd.exe Console Behind VSCode
TESTER-sec opened this issue · comments
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
No matter what system or version of Windows, when I launch the most recent version of VSCode it simultaneously launches a cmd.exe console window behind the VSCode GUI. This is reproducible every single time at-will on any system.
PowerShell Version
$PSVersionTable, $Host
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Name : ConsoleHost
Version : 7.4.1
InstanceId : c42ba18d-ed46-44b1-852e-2b5ce1168124
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
code --version
1.88.0
5c3e652f63e798a5ac2f31ffd0d863669328dc4c
x64
Extension Version
code --list-extensions --show-versions | Select-String powershell
ms-vscode.powershell@2024.0.0
Steps to Reproduce
- WIN key + R
- Enter "code"
Visuals
![WindowsTerminal_im364Hs5jD](https://private-user-images.githubusercontent.com/97270395/320142036-08ec8ff3-2374-4fb8-9272-4e83498bc43b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzkwMDMsIm5iZiI6MTcxOTE3ODcwMywicGF0aCI6Ii85NzI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Jlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4ODliYmNhYjFkMmViODY5OTY1ZjMwMDdkZjFlYTc3YjFjYzlkMmQ1ZjU1MGFmNGY5YjgzNTdlYjVhNTcxNTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.74yc9TkKKtIz2iFBFhHgDuL6a0K8LTq3DdtPbRyou70)
Logs
No response
Ok, can you open a bug with VS Code? This is the PowerShell extension repository.
This issue has been labeled as resolved, please verify the provided fix (or other reason).
This issue has been labeled as needing fix verification and has not had any activity a week. It has been closed for housekeeping purposes.