Skip to content

Commit 4eb054e

Browse files
committed
shellIntegration.ps1: escape value of Cwd=… property message
1 parent 530c1b4 commit 4eb054e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Global:Prompt() {
6464
$Result += "$([char]0x1b)]633;A`a"
6565
# Current working directory
6666
# OSC 633 ; <Property>=<Value> ST
67-
$Result += if($pwd.Provider.Name -eq 'FileSystem'){"$([char]0x1b)]633;P;Cwd=$($pwd.ProviderPath)`a"}
67+
$Result += if($pwd.Provider.Name -eq 'FileSystem'){"$([char]0x1b)]633;P;Cwd=$(__VSCode-Escape-Value $pwd.ProviderPath)`a"}
6868
# Before running the original prompt, put $? back to what it was:
6969
if ($FakeCode -ne 0) {
7070
Write-Error "failure" -ea ignore

0 commit comments

Comments
 (0)