mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
multi root - stable workspace.id
This commit is contained in:
@@ -16,7 +16,6 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { createApiFactory, initializeExtensionApi } from 'vs/workbench/api/node/extHost.api.impl';
|
||||
import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
|
||||
import { MainContext, MainProcessExtensionServiceShape, IWorkspaceData, IEnvironment, IInitData } from './extHost.protocol';
|
||||
import { createHash } from 'crypto';
|
||||
|
||||
const hasOwnProperty = Object.hasOwnProperty;
|
||||
|
||||
@@ -130,11 +129,7 @@ class ExtensionStoragePath {
|
||||
return TPromise.as(undefined);
|
||||
}
|
||||
// TODO@joh what to do with multiple roots?
|
||||
const storageName = createHash('md5')
|
||||
.update(this._workspace.roots[0].fsPath)
|
||||
.update(this._workspace.id || '')
|
||||
.digest('hex');
|
||||
|
||||
const storageName = this._workspace.id;
|
||||
const storagePath = join(this._environment.appSettingsHome, 'workspaceStorage', storageName);
|
||||
|
||||
return dirExists(storagePath).then(exists => {
|
||||
|
||||
Reference in New Issue
Block a user