mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
parent
1acefe49a7
commit
5f8c13a707
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
|
|||
|
||||
// Resolve path variables
|
||||
const env = await this._context.getEnvironment(options.remoteAuthority);
|
||||
const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot(Schemas.file);
|
||||
const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot(options.remoteAuthority ? Schemas.vscodeRemote : Schemas.file);
|
||||
const lastActiveWorkspace = activeWorkspaceRootUri ? withNullAsUndefined(this._workspaceContextService.getWorkspaceFolder(activeWorkspaceRootUri)) : undefined;
|
||||
profile.path = this._resolveVariables(profile.path, env, lastActiveWorkspace);
|
||||
|
||||
|
|
Loading…
Reference in a new issue