-
Notifications
You must be signed in to change notification settings - Fork 488
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
Clear-Host causes cursor position state issues with PSReadLine #2408
Clear-Host causes cursor position state issues with PSReadLine #2408
Comments
Ok so this is a very interesting issue. For starters: Your script is running properly and the The problem here is purely visual output and is related to the PSReadLine support in the PS Integrated Console. To prove it to you, you can do the following things:
The bug shows up after you run |
Thanks for the reply @TylerLeonhardt. I'm just trying your hypothesis, however, possibly related to this and #2407, pressing Anyway, as you suggested, setting |
Yeah the prompt change is something I've noticed when doing console debugging in PowerShell as well so that's likely an issue there. Did you try the first suggestion? Hitting enter until it scrolls? Curious if that works for you. |
System Details
System Details Output
Issue Description
Trying to get the directory of the current script using
Split-Path -Path $PSScriptRoot -Parent
.Expected Behaviour
Running the same script in ISE gives the expected result.
Actual Behaviour
As you can see, in VSCode, the result is not the parent. It's returned the whole file.
I have tried other variations such as
It always returns the full path.
Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: