From 395ad8fbae474f0913e426473904018d3c9a80d6 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Tue, 26 Nov 2024 11:33:29 -0500 Subject: [PATCH] ensure shell integration is set when cwd is changed (#234674) --- .../workbench/api/browser/mainThreadTerminalShellIntegration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts b/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts index de804627bafc9..6181cd4c63794 100644 --- a/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts +++ b/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts @@ -37,7 +37,7 @@ export class MainThreadTerminalShellIntegration extends Disposable implements Ma const onDidAddCommandDetection = this._store.add(this._terminalService.createOnInstanceEvent(instance => { return Event.map( Event.filter(instance.capabilities.onDidAddCapabilityType, e => { - return e === TerminalCapability.CommandDetection; + return e === TerminalCapability.CommandDetection || e === TerminalCapability.CwdDetection; }), () => instance ); })).event;