-
Notifications
You must be signed in to change notification settings - Fork 227
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
Replace backtick-e with $([char]0x1b)
#1961
Conversation
This allows shell integration to work with Windows PowerShell, as the only problem seemed to be use of `e, which was an escape character added only to PowerShell Core, but the `[char]` equivalent works fine.
Thanks @SeeminglyScience for the spot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Do I get this right, this is only a change for the sake of backward compatibility? |
@Hrxn, Not necessarily backward compatible, more of a cross platform compatibility. Windows PowerShell is a still active currently supported platform. Consider that PowerShell Core is an enhanced platform, rather than a 'newer' version. |
That's correct, the syntax
Windows PowerShell receives primarily only security updates. PowerShell 7 is definitely considered a newer version. |
Thank you for this explanation, appreciate it. I've done some tests here on my machine with |
Technically |
Thanks, glad that I finally found an answer for what has been a pretty longstanding question about powershell for me, to be honest.. 😉 |
If you aren't already there, check out the PowerShell Discord server. Plenty of folks hanging out ready to answer fun questions like that 😁 |
By replacing backtick-e with
$([char]0x1b)
, we allow shell integration to work with Windows PowerShell, as the only problem seemed to be use of backtick-e, which was an escape character added only to PowerShell Core, but the[char]
equivalent works fine.Same change as proposed upstream in microsoft/vscode#167023, resolves PowerShell/vscode-powershell#4279.