vscode.env.shell
doesn't report correctly terminal when a new shell of different type is opened without changing the default setting
#127374
Labels
*as-designed
Described behavior is as designed
Does this issue occur when all extensions are disabled?: Yes
Hi Python extension dev here 👋
Steps to Reproduce:
Subscribe to the
vscode.window.onDidOpenTerminal
event. Try to get the active terminal type usingvscode.env.shell
. It still reports the default shell. This leads to us sending the wrong activation commands.Even if we wait a little, the API always reports the default shell instead.
We can also replace step 1 with
vscode.window.createTerminal(undefined, 'C:\\Windows\\System32\\cmd.exe')
instead of using the icon, and notice'C:\\Windows\\System32\\cmd.exe'
is not reported via the API.cc @Tyriar
The text was updated successfully, but these errors were encountered: