Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable - WARNING: Editor operations are not supported in temporary consoles. #2525

Closed
HerBenSte opened this issue Mar 6, 2020 · 5 comments · Fixed by PowerShell/PowerShellEditorServices#1229
Assignees

Comments

@HerBenSte
Copy link

I'm using:
"powershell.debugging.createTemporaryIntegratedConsole": true
to always start a new console window to prevent any old code loading issues which I had in the past.
Only restart of VSCode was fixing it.
Since I use temporary consoles I never ran into that issue again.

But now (I guess since the last update) I get this warning:
See screenshot

This WARNING: comes from the
Clear-Host
in all of my scripts. Since I need those Clear-Host at the start of my Write-Host messages to get a clean console output I don't want to remove them (even not temporarly) out of my scripts.

Is it possible to disable this warning message?

@ghost ghost added the Needs: Triage Maintainer attention needed! label Mar 6, 2020
@TylerLeonhardt
Copy link
Member

@HerBenSte do you use this setting?:

"powershell.integratedConsole.forceClearScrollbackBuffer": true

@HerBenSte
Copy link
Author

@TylerLeonhardt
No I don't but I tested it right now.

I basically use:
"powershell.debugging.createTemporaryIntegratedConsole": true
To make sure I always have a clean script load.
That's working nice so far. But the last update of the PowerShell-Plugin shows this yellow Warning message everytime.

I mean, I can ignore it but if there is a way to disable this message it would be appreciated! :-)

@TylerLeonhardt
Copy link
Member

Sorry, I mean in your user settings. Open your preferences and uncheck this box:

image

@HerBenSte
Copy link
Author

@TylerLeonhardt
This setting is not set at all in the settings.json even in no settings the checkbox is set (workspace and so on).

I only set the value:
"powershell.debugging.createTemporaryIntegratedConsole": true

To make sure everytime I load the PowerShell it's new and no variable are filled with something else before. But since the last update of that extension it takes like 5sec until it starts.
Before it was like 1-2sec and that wasn't really distracting.
And the WARNING message is a bit annoying aswell.

At the moment I went back to normal console and not Temporary one.
Until I realise that my PowerShell deliveres wrong stuff so that I have to open a new console. :-\

@TylerLeonhardt
Copy link
Member

Fix out for this ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants