💄
This commit is contained in:
parent
db12b4a1fd
commit
707061ce17
1 changed files with 3 additions and 0 deletions
|
@ -84,10 +84,13 @@ export class RemotePathService implements IRemotePathService {
|
|||
|
||||
get userHome(): Promise<URI> {
|
||||
return this.remoteAgentService.getEnvironment().then(env => {
|
||||
|
||||
// remote: use remote environment userHome
|
||||
if (env) {
|
||||
return env.userHome;
|
||||
}
|
||||
|
||||
// local: use the userHome from environment
|
||||
return URI.from({ scheme: Schemas.file, path: this.environmentService.userHome });
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue