You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest update of the PowerShell extension (0.10.0), we've added a new "PowerShell Integrated Console" that leverages the createTerminal API in VS Code. Users have remarked that when they restart VS Code after using this terminal, the terminal UI starts immediately with their default terminal app before the PowerShell Integrated Console has a chance to load. More specifically:
User starts VS Code without the Terminal panel active
User has PowerShell 0.10.0 installed, loads a .ps1 file
PowerShell extension loads, creates PowerShell Interactive Console, causing Terminal panel to show
User closes VS Code
Later, user opens VS Code and the Terminal panel appears at startup, loading their default terminal app (probably powershell.exe)
If a .ps1 file is active in the workspace at startup, the "PowerShell Integrated Console" will also be loaded into the Terminal panel
So basically the user ends up having an extra, unwanted process get launched at startup. I've tried closing my terminal at shutdown from my extension's deactivate function but even that doesn't prevent the terminal UI from loading upon next startup.
Is there any way I can suppress this additional terminal?
The text was updated successfully, but these errors were encountered:
daviwil
changed the title
Integrated terminal UI reopens wrong terminal on startup
Integrated terminal UI reopens unwanted terminal on startup
Mar 21, 2017
This is happening because the workbench is restored as it was previously, which means if a terminal was up it will restore the terminal and then create a terminal process since the terminal cannot be open currently without a running process.
I believe #13267 is what you actually want to help with this, that way during launch you could suppress the terminal by immediately disposing it. If you have another proposal to work around the problem without adding that API I'm open to ideas 😃
Yeah, I suppose we could try to use this API to abort the initial terminal if the PowerShell extension's terminal was open at the end of the last session. Let's give it a shot!
With the latest update of the PowerShell extension (0.10.0), we've added a new "PowerShell Integrated Console" that leverages the
createTerminal
API in VS Code. Users have remarked that when they restart VS Code after using this terminal, the terminal UI starts immediately with their default terminal app before the PowerShell Integrated Console has a chance to load. More specifically:So basically the user ends up having an extra, unwanted process get launched at startup. I've tried closing my terminal at shutdown from my extension's deactivate function but even that doesn't prevent the terminal UI from loading upon next startup.
Is there any way I can suppress this additional terminal?
/cc @Tyriar @dotps1
The text was updated successfully, but these errors were encountered: