storage - introduce workspaceStorageHome to environment

This commit is contained in:
Benjamin Pasero
2018-10-17 12:52:42 +02:00
parent bc94252427
commit c2ef06ef8a
6 changed files with 11 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ export interface IEnvironment {
appSettingsHome: URI;
extensionDevelopmentLocationURI: URI;
extensionTestsPath: string;
workspaceStorageHome: string;
}
export interface IWorkspaceData {

View File

@@ -104,7 +104,7 @@ class ExtensionStoragePath {
}
const storageName = this._workspace.id;
const storagePath = join(this._environment.appSettingsHome.fsPath, 'workspaceStorage', storageName);
const storagePath = join(this._environment.workspaceStorageHome, storageName);
const exists = await dirExists(storagePath);