提交 acf50ea9 编写于 作者: J Johannes Rieken

Revert "Revert "add 'configuration' (read uri/path) of workspace config file, #41408""

This reverts commit 1cacde34.
上级 4fde7a37
......@@ -198,7 +198,7 @@ export class Workspace implements IWorkspace {
}
public toJSON(): IWorkspace {
return { id: this.id, folders: this.folders, name: this.name };
return { id: this.id, folders: this.folders, name: this.name, configuration: this.configuration };
}
}
......
......@@ -72,6 +72,7 @@ export interface IWorkspaceData {
id: string;
name: string;
folders: { uri: UriComponents, name: string, index: number }[];
configuration: UriComponents;
}
export interface IInitData {
......
......@@ -22,6 +22,7 @@ import { Barrier } from 'vs/base/common/async';
import { ILogService } from 'vs/platform/log/common/log';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
import { ExtHostLogService } from 'vs/workbench/api/node/extHostLogService';
import URI from 'vs/base/common/uri';
class ExtensionMemento implements IExtensionMemento {
......@@ -108,6 +109,7 @@ class ExtensionStoragePath {
join(storagePath, 'meta.json'),
JSON.stringify({
id: this._workspace.id,
configuration: URI.revive(this._workspace.configuration).toString(),
name: this._workspace.name
}, undefined, 2)
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册