feat: 添加vscode编辑器

This commit is contained in:
dhx
2022-09-29 16:48:09 +08:00
parent a93bdac4ff
commit 150898ec1e
1126 changed files with 933348 additions and 0 deletions
@@ -0,0 +1,40 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { createDecorator } from '../../instantiation/common/instantiation.js';
export const IUndoRedoService = createDecorator('undoRedoService');
export class ResourceEditStackSnapshot {
constructor(resource, elements) {
this.resource = resource;
this.elements = elements;
}
}
export class UndoRedoGroup {
constructor() {
this.id = UndoRedoGroup._ID++;
this.order = 1;
}
nextOrder() {
if (this.id === 0) {
return 0;
}
return this.order++;
}
}
UndoRedoGroup._ID = 0;
UndoRedoGroup.None = new UndoRedoGroup();
export class UndoRedoSource {
constructor() {
this.id = UndoRedoSource._ID++;
this.order = 1;
}
nextOrder() {
if (this.id === 0) {
return 0;
}
return this.order++;
}
}
UndoRedoSource._ID = 0;
UndoRedoSource.None = new UndoRedoSource();
File diff suppressed because it is too large Load Diff