diff --git a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 index 6c6ad4504b03..ac30ba1653d6 100644 --- a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 +++ b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 @@ -108,11 +108,12 @@ if (Get-Module -Name PSReadLine) { # OSC 633 ; E ; ; ST $Result = "$([char]0x1b)]633;E;" $Result += $(__VSCode-Escape-Value $CommandLine) + # Only send the nonce if the OS is not Windows 10 as it seems to echo to the terminal + # sometimes if ($IsWindows10 -eq $false) { $Result += ";$Nonce" } $Result += "`a" - [Console]::Write($Result) # Command executed # OSC 633 ; C ST