Skip to content

Commit

Permalink
fix: terminal should use '/projects' as default directory
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <[email protected]>
  • Loading branch information
vitaliy-guliy committed Feb 15, 2024
1 parent 64ac009 commit 3730f93
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot();
this._workspaceFolder = activeWorkspaceRootUri ? this._workspaceContextService.getWorkspaceFolder(activeWorkspaceRootUri) ?? undefined : undefined;
}
if (!this._workspaceFolder && !this.shellLaunchConfig.cwd) {
this.shellLaunchConfig.cwd = '/projects';
}

const scopedContextKeyService = this._register(_contextKeyService.createScoped(this._wrapperElement));
this._scopedContextKeyService = scopedContextKeyService;
Expand Down

0 comments on commit 3730f93

Please sign in to comment.