提交 744018ce 编写于 作者: A Alex Dima

No need to ship vs/base/common/uuid in standalone editor

上级 2aa966b4
......@@ -37,7 +37,6 @@ import { ResolvedKeybinding, Keybinding, createKeybinding, SimpleKeybinding } fr
import { ResolvedKeybindingItem } from 'vs/platform/keybinding/common/resolvedKeybindingItem';
import { OS } from 'vs/base/common/platform';
import { IRange } from 'vs/editor/common/core/range';
import { generateUuid } from "vs/base/common/uuid";
export class SimpleEditor implements IEditor {
......@@ -515,7 +514,8 @@ export class SimpleWorkspaceContextService implements IWorkspaceContextService {
constructor() {
this.legacyWorkspace = { resource: URI.from({ scheme: SimpleWorkspaceContextService.SCHEME, authority: 'model', path: '/' }) };
this.workspace = { id: generateUuid(), roots: [this.legacyWorkspace.resource], name: this.legacyWorkspace.resource.fsPath };
this.workspace = { id: '4064f6ec-cb38-4ad0-af64-ee6467e63c82', roots: [this.legacyWorkspace.resource], name: this.legacyWorkspace.resource.fsPath };
console.log(this.workspace);
}
public getWorkspace(): ILegacyWorkspace {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册