Skip to content

Commit 1d37b27

Browse files
committed
fix issue
1 parent e03e8ca commit 1d37b27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
779779
capabilities: this.capabilities,
780780
shellIntegrationNonce: this._processManager.shellIntegrationNonce,
781781
disableShellIntegrationReporting,
782-
initialCwd: this._cwd,
782+
initialCwd: this.shellLaunchConfig.attachPersistentProcess?.cwd,
783783
});
784784
this.xterm = xterm;
785785
this._resizeDebouncer = this._register(new TerminalResizeDebouncer(

src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class XtermTerminal extends Disposable implements IXtermTerminal, IDetach
278278
this._register(this._decorationAddon.onDidRequestRunCommand(e => this._onDidRequestRunCommand.fire(e)));
279279
this._register(this._decorationAddon.onDidRequestCopyAsHtml(e => this._onDidRequestCopyAsHtml.fire(e)));
280280
this.raw.loadAddon(this._decorationAddon);
281-
this._shellIntegrationAddon = new ShellIntegrationAddon(options.shellIntegrationNonce ?? '', options.disableShellIntegrationReporting, undefined, this._telemetryService, this._logService);
281+
this._shellIntegrationAddon = new ShellIntegrationAddon(options.shellIntegrationNonce ?? '', options.disableShellIntegrationReporting, options.initialCwd, this._telemetryService, this._logService);
282282
this.raw.loadAddon(this._shellIntegrationAddon);
283283
this._xtermAddonLoader.importAddon('clipboard').then(ClipboardAddon => {
284284
if (this._store.isDisposed) {

0 commit comments

Comments
 (0)