Skip to content

Commit 9d58ca6

Browse files
committed
Add IsWindows check
1 parent e306e5a commit 9d58ca6

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
@@ -22,7 +22,7 @@ $Nonce = $env:VSCODE_NONCE
2222
$env:VSCODE_NONCE = $null
2323

2424
$osVersion = [System.Environment]::OSVersion.Version
25-
$isWindows10 = $osVersion.Major -eq 10 -and $osVersion.Minor -eq 0 -and $osVersion.Build -lt 22000
25+
$isWindows10 = $IsWindows10 -and $osVersion.Major -eq 10 -and $osVersion.Minor -eq 0 -and $osVersion.Build -lt 22000
2626

2727
if ($env:VSCODE_ENV_REPLACE) {
2828
$Split = $env:VSCODE_ENV_REPLACE.Split(":")

0 commit comments

Comments
 (0)