Skip to content

Commit

Permalink
fix: set cwd when terminal recovery (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanba authored Aug 8, 2024
1 parent dc169e4 commit 939fb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/terminal-next/src/browser/terminal.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export class TerminalClient extends Disposable implements ITerminalClient {
}

private async _pickWorkspace() {
if (this.workspace.isMultiRootWorkspaceOpened) {
if (this.workspace.isMultiRootWorkspaceOpened && !this._widget.recovery) {
// 工作区模式下每次新建终端都需要用户手动进行一次路径选择
const roots = this.workspace.tryGetRoots();
const choose = await this.quickPick.show(
Expand All @@ -533,7 +533,7 @@ export class TerminalClient extends Disposable implements ITerminalClient {
const widget = this._widget;
if (TerminalClient.WORKSPACE_PATH_CACHED.has(widget.group.id)) {
this._workspacePath = TerminalClient.WORKSPACE_PATH_CACHED.get(widget.group.id)!;
} else if (!widget.recovery) {
} else {
const choose = await this._pickWorkspace();
if (choose) {
this._workspacePath = choose;
Expand Down

1 comment on commit 939fb21

@opensumi
Copy link
Contributor

@opensumi opensumi bot commented on 939fb21 Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Next publish successful!

3.2.3-next-1723445188.0

Please sign in to comment.