question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to hide the PowerShell Integrated Console from the user

See original GitHub issue

Summary of the new feature

As a user I want autocompletion etc., but without having the PowerShell Integrated Console in my Terminal view, so that when I open the Terminal view, I don’t accidentally start using it.

Say I have 5 files open in VS Code: if none of them is a PowerShell script and I hit Ctrl+` , VS Code gives me a standard powershell terminal that I can use straightaway. However, if I happen to have a PowerShell script open, I just get the already-running PowerShell Integrated Console (which I don’t want to use, because it doesn’t quite work the same like a standard terminal).

Proposed technical implementation details

If I understand this correctly, there’s a TerminalOptions.hideFromUser API to do exactly this.

So what I’d like to have, is an extension setting to specify that the PowerShell Integrated Console should be launched with hideFromUser set to true.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TylerLeonhardtcommented, Jan 24, 2020

Gotcha. So I guess we can kinda support this by using hideFromUser at start up instead of “not running show” and then debugging should “unhide” the terminal.

Unfortunately, once it’s shown, we wouldn’t be able to re-hide it like you said… but this should be good for @anthonyvdotbe maybe?

1reaction
anthonyvdotbecommented, Jan 24, 2020

Does this also cover your case?

It doesn’t: that setting only prevents the Terminal view from being shown as soon as a PowerShell script is opened, but the PowerShell Integrated Console is still there. So when I hit Ctrl + ` , I’ll end up in the PowerShell Integrated Console, rather than a standard powershell terminal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making VS Code's Powershell Integrated Console useful
Just install it through the Extension Manager ( Ctrl-Shift-X ), disable the Powershell extension, and reload your session. If you modified your ...
Read more >
How can I use the "PowerShell Integrated Console" in VS Code?
1 Answer 1 · Use the PowerShell: Show Integrated Console command from the command palette. · Additionally, you may assign a keyboard shortcut...
Read more >
Is there any way to hide this PowerShell, etc., and this long file ...
Start powershell with -NoLogo as a parameter to hide the Copyright information. For Unix like filepaths I recommend ohmyposh.
Read more >
VS Code PowerShell Terminal: Removing banner - Super User
Is there a way to remove the banner of Powershell Terminal in VS Code?
Read more >
PowerShell Extension for Visual Studio Code July 2022 Update
This release renames the “PowerShell Integrated Console” to the “PowerShell Extension Terminal” to align with VS Code's verbiage, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found