This commit is contained in:
Radek Simko 2021-11-26 14:26:50 +00:00 committed by GitHub
commit ff6265cc2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,14 @@ export abstract class AbstractNativeEnvironmentService implements INativeEnviron
get machineSettingsResource(): URI { return joinPath(URI.file(join(this.userDataPath, 'Machine')), 'settings.json'); }
@memoize
get globalStorageHome(): URI { return URI.joinPath(this.appSettingsHome, 'globalStorage'); }
get globalStorageHome(): URI {
const globalStoragePath = env['VSCODE_GLOBAL_STORAGE'];
if (globalStoragePath) {
return URI.file(globalStoragePath);
}
return URI.joinPath(this.appSettingsHome, 'globalStorage');
}
@memoize
get workspaceStorageHome(): URI { return URI.joinPath(this.appSettingsHome, 'workspaceStorage'); }