diff --git a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts index 4ffe4542f7c..05de3dc72d8 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts @@ -1737,7 +1737,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance { @debounce(2000) private async _updateProcessCwd(): Promise { - if (this._isDisposed) { + if (this._isDisposed || this.shellLaunchConfig.customPtyImplementation) { return; } // reset cwd if it has changed, so file based url paths can be resolved