We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 866bddc commit 69c0f1fCopy full SHA for 69c0f1f
src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1
@@ -8,6 +8,11 @@ if (Test-Path variable:global:__VSCodeOriginalPrompt) {
8
return;
9
}
10
11
+# Disable shell integration when the language mode is restricted
12
+if (("RestrictedLanguage", "NoLanguage") -Contains $ExecutionContext.SessionState.LanguageMode) {
13
+ return;
14
+}
15
+
16
$Global:__VSCodeOriginalPrompt = $function:Prompt
17
18
$Global:__LastHistoryId = -1
0 commit comments