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 66772c0 commit 5475dfeCopy full SHA for 5475dfe
src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts
@@ -659,7 +659,12 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
659
if (!this._terminal) {
660
throw new Error('Cannot restore commands before addon is activated');
661
}
662
- this._createOrGetCommandDetection(this._terminal).deserialize(serialized);
+ const commandDetection = this._createOrGetCommandDetection(this._terminal);
663
+ commandDetection.deserialize(serialized);
664
+ if (commandDetection.cwd) {
665
+ // Cwd gets set when the command is deserialized, so we need to update it here
666
+ this._updateCwd(commandDetection.cwd);
667
+ }
668
669
670
protected _createOrGetCwdDetection(): ICwdDetectionCapability {
0 commit comments