This commit is contained in:
Benjamin Pasero 2020-01-14 10:17:42 +01:00
parent db12b4a1fd
commit 707061ce17

View file

@ -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 });
});
}