From aac6f9c916efd8a13aaa09a985a33db14a21acac Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 17 Apr 2024 06:10:06 -0700 Subject: [PATCH] Don't double echo 633 E --- .../contrib/terminal/browser/media/shellIntegration.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 index 6c6ad4504b032..ac30ba1653d66 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