mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
💄
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user