From 3c62164797dcdccfdda45d968c8da3ed95d0ddb2 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 19 Aug 2022 08:11:29 -0700 Subject: [PATCH] Check FullLanguage only --- .../contrib/terminal/browser/media/shellIntegration.ps1 | 2 +- 1 file changed, 1 insertion(+), 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 a97a16526a8..4b44b501326 100644 --- a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 +++ b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 @@ -9,7 +9,7 @@ if (Test-Path variable:global:__VSCodeOriginalPrompt) { } # Disable shell integration when the language mode is restricted -if (("RestrictedLanguage", "NoLanguage") -Contains $ExecutionContext.SessionState.LanguageMode) { +if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") { return; }