Skip to content

Commit aac6f9c

Browse files
committed
Don't double echo 633 E
1 parent 9d58ca6 commit aac6f9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ if (Get-Module -Name PSReadLine) {
108108
# OSC 633 ; E ; <CommandLine?> ; <Nonce?> ST
109109
$Result = "$([char]0x1b)]633;E;"
110110
$Result += $(__VSCode-Escape-Value $CommandLine)
111+
# Only send the nonce if the OS is not Windows 10 as it seems to echo to the terminal
112+
# sometimes
111113
if ($IsWindows10 -eq $false) {
112114
$Result += ";$Nonce"
113115
}
114116
$Result += "`a"
115-
[Console]::Write($Result)
116117

117118
# Command executed
118119
# OSC 633 ; C ST

0 commit comments

Comments
 (0)