File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ $Global:__LastHistoryId = -1
21
21
$Nonce = $env: VSCODE_NONCE
22
22
$env: VSCODE_NONCE = $null
23
23
24
+ $osVersion = [System.Environment ]::OSVersion.Version
25
+ $isWindows10 = $osVersion.Major -eq 10 -and $osVersion.Minor -eq 0 -and $osVersion.Build -lt 22000
26
+
24
27
if ($env: VSCODE_ENV_REPLACE ) {
25
28
$Split = $env: VSCODE_ENV_REPLACE.Split (" :" )
26
29
foreach ($Item in $Split ) {
@@ -105,7 +108,9 @@ if (Get-Module -Name PSReadLine) {
105
108
# OSC 633 ; E ; <CommandLine?> ; <Nonce?> ST
106
109
$Result = " $ ( [char ]0x1b ) ]633;E;"
107
110
$Result += $ (__VSCode- Escape- Value $CommandLine )
108
- $Result += " ;$Nonce "
111
+ if ($IsWindows10 -eq $false ) {
112
+ $Result += " ;$Nonce "
113
+ }
109
114
$Result += " `a "
110
115
[Console ]::Write($Result )
111
116
You can’t perform that action at this time.
0 commit comments