don't try to refresh cwd for extension/feature terminals (#146193)

This commit is contained in:
Megan Rogge 2022-03-28 14:14:44 -04:00 committed by GitHub
parent 4364509ef2
commit cf321f8c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1737,7 +1737,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
@debounce(2000)
private async _updateProcessCwd(): Promise<void> {
if (this._isDisposed) {
if (this._isDisposed || this.shellLaunchConfig.customPtyImplementation) {
return;
}
// reset cwd if it has changed, so file based url paths can be resolved