@opensumi/ide-editor 3.8.3-next-1747817292.0 → 3.8.3-next-1747895552.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/base-editor-wrapper.d.ts +58 -0
- package/lib/browser/base-editor-wrapper.d.ts.map +1 -0
- package/lib/browser/base-editor-wrapper.js +203 -0
- package/lib/browser/base-editor-wrapper.js.map +1 -0
- package/lib/browser/editor-collection.service.d.ts +8 -57
- package/lib/browser/editor-collection.service.d.ts.map +1 -1
- package/lib/browser/editor-collection.service.js +6 -202
- package/lib/browser/editor-collection.service.js.map +1 -1
- package/lib/browser/editor.less +11 -0
- package/lib/browser/multi-diff/multi-diff-editor.d.ts +6 -5
- package/lib/browser/multi-diff/multi-diff-editor.d.ts.map +1 -1
- package/lib/browser/multi-diff/multi-diff-editor.js +29 -24
- package/lib/browser/multi-diff/multi-diff-editor.js.map +1 -1
- package/package.json +14 -14
- package/src/browser/base-editor-wrapper.ts +254 -0
- package/src/browser/editor-collection.service.ts +5 -256
- package/src/browser/editor.less +11 -0
- package/src/browser/multi-diff/multi-diff-editor.ts +54 -31
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IRange } from '@opensumi/ide-core-browser';
|
|
2
|
+
import { Disposable, URI, WithEventBus } from '@opensumi/ide-core-common';
|
|
3
|
+
import * as monaco from '@opensumi/ide-monaco';
|
|
4
|
+
import { IConfigurationService } from '@opensumi/monaco-editor-core/esm/vs/platform/configuration/common/configuration';
|
|
5
|
+
import { EditorType, IDecorationApplyOptions, IEditor, IUndoStopOptions } from '../common';
|
|
6
|
+
import { IEditorDocumentModel } from '../common/editor';
|
|
7
|
+
import { MonacoEditorDecorationApplier } from './decoration-applier';
|
|
8
|
+
import { IEditorFeatureRegistry } from './types';
|
|
9
|
+
import type { ICodeEditor as IMonacoCodeEditor } from '@opensumi/ide-monaco/lib/browser/monaco-api/types';
|
|
10
|
+
export type ISumiEditor = IEditor;
|
|
11
|
+
export declare function insertSnippetWithMonacoEditor(editor: IMonacoCodeEditor, template: string, ranges: IRange[], opts: IUndoStopOptions): void;
|
|
12
|
+
export declare abstract class BaseMonacoEditorWrapper extends WithEventBus implements IEditor {
|
|
13
|
+
readonly monacoEditor: IMonacoCodeEditor;
|
|
14
|
+
private type;
|
|
15
|
+
abstract readonly currentDocumentModel: IEditorDocumentModel | null;
|
|
16
|
+
get currentUri(): URI | null;
|
|
17
|
+
getId(): string;
|
|
18
|
+
getSelections(): monaco.Selection[];
|
|
19
|
+
onFocus: monaco.Event<void>;
|
|
20
|
+
onBlur: monaco.Event<void>;
|
|
21
|
+
protected _specialEditorOptions: any;
|
|
22
|
+
protected _specialModelOptions: monaco.editor.ITextModelUpdateOptions;
|
|
23
|
+
protected _editorOptionsFromContribution: any;
|
|
24
|
+
protected readonly editorFeatureRegistry: IEditorFeatureRegistry;
|
|
25
|
+
protected readonly configurationService: IConfigurationService;
|
|
26
|
+
protected readonly decorationApplier: MonacoEditorDecorationApplier;
|
|
27
|
+
private _disableSelectionEmitter;
|
|
28
|
+
protected disableSelectionEmitter(): void;
|
|
29
|
+
protected enableSelectionEmitter(): void;
|
|
30
|
+
private injector;
|
|
31
|
+
constructor(monacoEditor: IMonacoCodeEditor, type: EditorType);
|
|
32
|
+
private onDidChangeModel;
|
|
33
|
+
getType(): EditorType;
|
|
34
|
+
updateOptions(editorOptions?: monaco.editor.IEditorOptions, modelOptions?: monaco.editor.ITextModelUpdateOptions): void;
|
|
35
|
+
private _doUpdateOptions;
|
|
36
|
+
/**
|
|
37
|
+
* 合并所有的选项
|
|
38
|
+
* 优先关系: (从高到底)
|
|
39
|
+
* 1. 当前编辑器的特殊选项(通过调用 updateOptions或者启动时传入)
|
|
40
|
+
* 2. 来自 featureRegistry 的根据 当前uri 提供的选项
|
|
41
|
+
* 3. 来自偏好设置的选项
|
|
42
|
+
*/
|
|
43
|
+
private _calculateFinalOptions;
|
|
44
|
+
insertSnippet(template: string, ranges: IRange[], opts: IUndoStopOptions): void;
|
|
45
|
+
applyDecoration(key: string, options: IDecorationApplyOptions[]): void;
|
|
46
|
+
onSelectionsChanged(listener: any): import("@opensumi/monaco-editor-core/esm/vs/base/common/lifecycle").IDisposable;
|
|
47
|
+
onVisibleRangesChanged(listener: any): Disposable;
|
|
48
|
+
setSelections(selections: any): void;
|
|
49
|
+
setSelection(selection: any): void;
|
|
50
|
+
save(): Promise<void>;
|
|
51
|
+
onConfigurationChanged(listener: any): import("@opensumi/monaco-editor-core/esm/vs/base/common/lifecycle").IDisposable;
|
|
52
|
+
}
|
|
53
|
+
export declare class DiffEditorPart extends BaseMonacoEditorWrapper implements IEditor {
|
|
54
|
+
private getDocumentModel;
|
|
55
|
+
get currentDocumentModel(): IEditorDocumentModel | null;
|
|
56
|
+
constructor(monacoEditor: IMonacoCodeEditor, getDocumentModel: () => IEditorDocumentModel | null, type: EditorType);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=base-editor-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-editor-wrapper.d.ts","sourceRoot":"","sources":["../../src/browser/base-editor-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAc,GAAG,EAAE,YAAY,EAA0B,MAAM,2BAA2B,CAAC;AAC9G,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AAExH,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,KAAK,EAA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BAAsB;IA4B9B,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB;IAIxE,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAE;IAI/D,mBAAmB,CAAC,QAAQ,KAAA;IAW5B,sBAAsB,CAAC,QAAQ,KAAA;IAgB/B,aAAa,CAAC,UAAU,KAAA;IAIxB,YAAY,CAAC,SAAS,KAAA;IAIT,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAMlC,sBAAsB,CAAC,QAAQ,KAAA;CAMhC;AACD,qBACa,cAAe,SAAQ,uBAAwB,YAAW,OAAO;IAO1E,OAAO,CAAC,gBAAgB;IAN1B,IAAI,oBAAoB,gCAEvB;gBAGC,YAAY,EAAE,iBAAiB,EACvB,gBAAgB,EAAE,MAAM,oBAAoB,GAAG,IAAI,EAC3D,IAAI,EAAE,UAAU;CAInB"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiffEditorPart = exports.BaseMonacoEditorWrapper = void 0;
|
|
4
|
+
exports.insertSnippetWithMonacoEditor = insertSnippetWithMonacoEditor;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const di_1 = require("@opensumi/di");
|
|
7
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
8
|
+
const monaco = tslib_1.__importStar(require("@opensumi/ide-monaco"));
|
|
9
|
+
const configuration_1 = require("@opensumi/monaco-editor-core/esm/vs/platform/configuration/common/configuration");
|
|
10
|
+
const common_1 = require("../common");
|
|
11
|
+
const decoration_applier_1 = require("./decoration-applier");
|
|
12
|
+
const converter_1 = require("./preference/converter");
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
function insertSnippetWithMonacoEditor(editor, template, ranges, opts) {
|
|
15
|
+
const snippetController = editor.getContribution('snippetController2');
|
|
16
|
+
const selections = ranges.map((r) => new monaco.Selection(r.startLineNumber, r.startColumn, r.endLineNumber, r.endColumn));
|
|
17
|
+
editor.setSelections(selections);
|
|
18
|
+
editor.focus();
|
|
19
|
+
snippetController.insert(template, 0, 0, opts.undoStopBefore, opts.undoStopAfter);
|
|
20
|
+
}
|
|
21
|
+
const { removeUndefined } = ide_core_common_1.objects;
|
|
22
|
+
function updateOptionsWithMonacoEditor(monacoEditor, editorOptions, modelOptions) {
|
|
23
|
+
monacoEditor.updateOptions(editorOptions);
|
|
24
|
+
if (monacoEditor.getModel()) {
|
|
25
|
+
monacoEditor.getModel().updateOptions(modelOptions);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
let BaseMonacoEditorWrapper = class BaseMonacoEditorWrapper extends ide_core_common_1.WithEventBus {
|
|
29
|
+
get currentUri() {
|
|
30
|
+
return this.currentDocumentModel ? this.currentDocumentModel.uri : null;
|
|
31
|
+
}
|
|
32
|
+
getId() {
|
|
33
|
+
return this.monacoEditor.getId();
|
|
34
|
+
}
|
|
35
|
+
getSelections() {
|
|
36
|
+
return this.monacoEditor.getSelections() || [];
|
|
37
|
+
}
|
|
38
|
+
disableSelectionEmitter() {
|
|
39
|
+
this._disableSelectionEmitter = true;
|
|
40
|
+
}
|
|
41
|
+
enableSelectionEmitter() {
|
|
42
|
+
this._disableSelectionEmitter = false;
|
|
43
|
+
}
|
|
44
|
+
constructor(monacoEditor, type) {
|
|
45
|
+
super();
|
|
46
|
+
this.monacoEditor = monacoEditor;
|
|
47
|
+
this.type = type;
|
|
48
|
+
this.onFocus = this.monacoEditor.onDidFocusEditorWidget;
|
|
49
|
+
this.onBlur = this.monacoEditor.onDidBlurEditorWidget;
|
|
50
|
+
this._specialEditorOptions = {};
|
|
51
|
+
this._specialModelOptions = {};
|
|
52
|
+
this._editorOptionsFromContribution = {};
|
|
53
|
+
this._disableSelectionEmitter = false;
|
|
54
|
+
this.decorationApplier = this.injector.get(decoration_applier_1.MonacoEditorDecorationApplier, [this.monacoEditor]);
|
|
55
|
+
this.addDispose(this.monacoEditor.onDidChangeModel(this.onDidChangeModel.bind(this)));
|
|
56
|
+
this.addDispose(this.monacoEditor.onDidChangeModelLanguage(() => {
|
|
57
|
+
this._doUpdateOptions();
|
|
58
|
+
}));
|
|
59
|
+
this.addDispose(this.configurationService.onDidChangeConfiguration((e) => {
|
|
60
|
+
const changedEditorKeys = Array.from(e.affectedKeys.values()).filter((key) => (0, converter_1.isEditorOption)(key));
|
|
61
|
+
if (changedEditorKeys.length > 0) {
|
|
62
|
+
this._doUpdateOptions();
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
async onDidChangeModel() {
|
|
67
|
+
this._editorOptionsFromContribution = {};
|
|
68
|
+
const uri = this.currentUri;
|
|
69
|
+
if (uri) {
|
|
70
|
+
Promise.resolve(this.editorFeatureRegistry.runProvideEditorOptionsForUri(uri)).then((options) => {
|
|
71
|
+
if (!this.currentUri || !uri.isEqual(this.currentUri)) {
|
|
72
|
+
return; // uri可能已经变了
|
|
73
|
+
}
|
|
74
|
+
if (options && Object.keys(options).length > 0) {
|
|
75
|
+
this._editorOptionsFromContribution = options;
|
|
76
|
+
if (!(0, ide_core_common_1.isEmptyObject)(this._editorOptionsFromContribution)) {
|
|
77
|
+
this._doUpdateOptions();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
getType() {
|
|
84
|
+
return this.type;
|
|
85
|
+
}
|
|
86
|
+
updateOptions(editorOptions = {}, modelOptions = {}) {
|
|
87
|
+
this._specialEditorOptions = removeUndefined({ ...this._specialEditorOptions, ...editorOptions });
|
|
88
|
+
this._specialModelOptions = removeUndefined({ ...this._specialModelOptions, ...modelOptions });
|
|
89
|
+
this._doUpdateOptions();
|
|
90
|
+
}
|
|
91
|
+
_doUpdateOptions() {
|
|
92
|
+
const { editorOptions, modelOptions } = this._calculateFinalOptions();
|
|
93
|
+
updateOptionsWithMonacoEditor(this.monacoEditor, editorOptions, modelOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 合并所有的选项
|
|
97
|
+
* 优先关系: (从高到底)
|
|
98
|
+
* 1. 当前编辑器的特殊选项(通过调用 updateOptions或者启动时传入)
|
|
99
|
+
* 2. 来自 featureRegistry 的根据 当前uri 提供的选项
|
|
100
|
+
* 3. 来自偏好设置的选项
|
|
101
|
+
*/
|
|
102
|
+
_calculateFinalOptions() {
|
|
103
|
+
var _a;
|
|
104
|
+
const uriStr = this.currentUri ? this.currentUri.toString() : undefined;
|
|
105
|
+
const languageId = this.currentDocumentModel ? this.currentDocumentModel.languageId : undefined;
|
|
106
|
+
const options = (0, converter_1.getConvertedMonacoOptions)(this.configurationService, uriStr, languageId, undefined);
|
|
107
|
+
const basicEditorOptions = {
|
|
108
|
+
readOnly: ((_a = this.currentDocumentModel) === null || _a === void 0 ? void 0 : _a.readonly) || false,
|
|
109
|
+
};
|
|
110
|
+
let editorOptions = {
|
|
111
|
+
...basicEditorOptions,
|
|
112
|
+
...options.editorOptions,
|
|
113
|
+
...this._editorOptionsFromContribution,
|
|
114
|
+
...this._specialEditorOptions,
|
|
115
|
+
};
|
|
116
|
+
if (this.type !== common_1.EditorType.CODE) {
|
|
117
|
+
editorOptions = {
|
|
118
|
+
...editorOptions,
|
|
119
|
+
...options.diffOptions,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
editorOptions,
|
|
124
|
+
modelOptions: { ...options.modelOptions, ...this._specialModelOptions },
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
insertSnippet(template, ranges, opts) {
|
|
128
|
+
insertSnippetWithMonacoEditor(this.monacoEditor, template, ranges, opts);
|
|
129
|
+
}
|
|
130
|
+
applyDecoration(key, options) {
|
|
131
|
+
this.decorationApplier.applyDecoration(key, options);
|
|
132
|
+
}
|
|
133
|
+
onSelectionsChanged(listener) {
|
|
134
|
+
return this.monacoEditor.onDidChangeCursorSelection((e) => {
|
|
135
|
+
if (!this._disableSelectionEmitter) {
|
|
136
|
+
listener({
|
|
137
|
+
selections: this.getSelections(),
|
|
138
|
+
source: e.source,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
onVisibleRangesChanged(listener) {
|
|
144
|
+
const disposer = new ide_core_common_1.Disposable();
|
|
145
|
+
const monacoEditor = this.monacoEditor;
|
|
146
|
+
disposer.addDispose(monacoEditor.onDidScrollChange((e) => {
|
|
147
|
+
listener(this.monacoEditor.getVisibleRanges());
|
|
148
|
+
}));
|
|
149
|
+
disposer.addDispose(monacoEditor.onDidLayoutChange((e) => {
|
|
150
|
+
listener(this.monacoEditor.getVisibleRanges());
|
|
151
|
+
}));
|
|
152
|
+
return disposer;
|
|
153
|
+
}
|
|
154
|
+
setSelections(selections) {
|
|
155
|
+
return this.monacoEditor.setSelections(selections);
|
|
156
|
+
}
|
|
157
|
+
setSelection(selection) {
|
|
158
|
+
return this.monacoEditor.setSelection(selection);
|
|
159
|
+
}
|
|
160
|
+
async save() {
|
|
161
|
+
if (this.currentDocumentModel) {
|
|
162
|
+
await this.currentDocumentModel.save();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
onConfigurationChanged(listener) {
|
|
166
|
+
const monacoEditor = this.monacoEditor;
|
|
167
|
+
return monacoEditor.onDidChangeConfiguration((e) => {
|
|
168
|
+
listener();
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
exports.BaseMonacoEditorWrapper = BaseMonacoEditorWrapper;
|
|
173
|
+
tslib_1.__decorate([
|
|
174
|
+
(0, di_1.Autowired)(types_1.IEditorFeatureRegistry),
|
|
175
|
+
tslib_1.__metadata("design:type", Object)
|
|
176
|
+
], BaseMonacoEditorWrapper.prototype, "editorFeatureRegistry", void 0);
|
|
177
|
+
tslib_1.__decorate([
|
|
178
|
+
(0, di_1.Autowired)(configuration_1.IConfigurationService),
|
|
179
|
+
tslib_1.__metadata("design:type", Object)
|
|
180
|
+
], BaseMonacoEditorWrapper.prototype, "configurationService", void 0);
|
|
181
|
+
tslib_1.__decorate([
|
|
182
|
+
(0, di_1.Autowired)(di_1.INJECTOR_TOKEN),
|
|
183
|
+
tslib_1.__metadata("design:type", di_1.Injector)
|
|
184
|
+
], BaseMonacoEditorWrapper.prototype, "injector", void 0);
|
|
185
|
+
exports.BaseMonacoEditorWrapper = BaseMonacoEditorWrapper = tslib_1.__decorate([
|
|
186
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
187
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object])
|
|
188
|
+
], BaseMonacoEditorWrapper);
|
|
189
|
+
let DiffEditorPart = class DiffEditorPart extends BaseMonacoEditorWrapper {
|
|
190
|
+
get currentDocumentModel() {
|
|
191
|
+
return this.getDocumentModel();
|
|
192
|
+
}
|
|
193
|
+
constructor(monacoEditor, getDocumentModel, type) {
|
|
194
|
+
super(monacoEditor, type);
|
|
195
|
+
this.getDocumentModel = getDocumentModel;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
exports.DiffEditorPart = DiffEditorPart;
|
|
199
|
+
exports.DiffEditorPart = DiffEditorPart = tslib_1.__decorate([
|
|
200
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
201
|
+
tslib_1.__metadata("design:paramtypes", [Object, Function, Object])
|
|
202
|
+
], DiffEditorPart);
|
|
203
|
+
//# sourceMappingURL=base-editor-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-editor-wrapper.js","sourceRoot":"","sources":["../../src/browser/base-editor-wrapper.ts"],"names":[],"mappings":";;;AAiBA,sEAcC;;AA/BD,qCAA+E;AAE/E,+DAA8G;AAC9G,qEAA+C;AAC/C,mHAAwH;AAExH,sCAA2F;AAG3F,6DAAqE;AACrE,sDAAmF;AACnF,mCAAiD;AAMjD,SAAgB,6BAA6B,CAC3C,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YAAY,CAAC,SAAgB,CAAC,CAAC;IAC1D,CAAC;IAEM,KAAK,CAAC,IAAI;QACf,IAAI,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC;QACzC,CAAC;IACH,CAAC;IAED,sBAAsB,CAAC,QAAQ;QAC7B,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACvC,OAAO,YAAY,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EAAE;YACjD,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAhMqB,0DAAuB;AA0BxB;IADlB,IAAA,cAAS,EAAC,8BAAsB,CAAC;;sEAC+B;AAG9C;IADlB,IAAA,cAAS,EAAC,qCAAqB,CAAC;;qEAC8B;AAevD;IADP,IAAA,cAAS,EAAC,mBAAc,CAAC;sCACR,aAAQ;yDAAC;kCA5CP,uBAAuB;IAD5C,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;GACT,uBAAuB,CAgM5C;AAEM,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uBAAuB;IACzD,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED,YACE,YAA+B,EACvB,gBAAmD,EAC3D,IAAgB;QAEhB,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAHlB,qBAAgB,GAAhB,gBAAgB,CAAmC;IAI7D,CAAC;CACF,CAAA;AAZY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;GAClB,cAAc,CAY1B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Injector } from '@opensumi/di';
|
|
2
|
-
import { IContextKeyService,
|
|
2
|
+
import { IContextKeyService, PreferenceService } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { MonacoService } from '@opensumi/ide-core-browser/lib/monaco';
|
|
4
|
-
import {
|
|
4
|
+
import { Event, ILineChange, URI, WithEventBus } from '@opensumi/ide-core-common';
|
|
5
5
|
import * as monaco from '@opensumi/ide-monaco';
|
|
6
6
|
import { IConfigurationService } from '@opensumi/monaco-editor-core/esm/vs/platform/configuration/common/configuration';
|
|
7
|
-
import { CursorStatus, EditorCollectionService, EditorType, ICodeEditor,
|
|
8
|
-
import {
|
|
7
|
+
import { CursorStatus, EditorCollectionService, EditorType, ICodeEditor, IDiffEditor, IEditor, IResourceOpenOptions } from '../common';
|
|
8
|
+
import { IEditorDocumentModelRef } from '../common/editor';
|
|
9
9
|
import { IMultiDiffEditor } from '../common/multi-diff';
|
|
10
|
-
import {
|
|
10
|
+
import { BaseMonacoEditorWrapper, ISumiEditor } from './base-editor-wrapper';
|
|
11
11
|
import { EditorDocumentModelContentChangedEvent, IEditorDocumentModelService } from './doc-model/types';
|
|
12
12
|
import { EditorFeatureRegistryImpl } from './feature';
|
|
13
13
|
import { BrowserMultiDiffEditor } from './multi-diff/multi-diff-editor';
|
|
@@ -61,49 +61,6 @@ export declare class EditorCollectionServiceImpl extends WithEventBus implements
|
|
|
61
61
|
removeMultiDiffEditors(multiDiffEditors: IMultiDiffEditor[]): void;
|
|
62
62
|
onDocModelContentChangedEvent(e: EditorDocumentModelContentChangedEvent): void;
|
|
63
63
|
}
|
|
64
|
-
export type ISumiEditor = IEditor;
|
|
65
|
-
export declare function insertSnippetWithMonacoEditor(editor: IMonacoCodeEditor, template: string, ranges: IRange[], opts: IUndoStopOptions): void;
|
|
66
|
-
export declare abstract class BaseMonacoEditorWrapper extends WithEventBus implements IEditor {
|
|
67
|
-
readonly monacoEditor: IMonacoCodeEditor;
|
|
68
|
-
private type;
|
|
69
|
-
abstract readonly currentDocumentModel: IEditorDocumentModel | null;
|
|
70
|
-
get currentUri(): URI | null;
|
|
71
|
-
getId(): string;
|
|
72
|
-
getSelections(): monaco.Selection[];
|
|
73
|
-
onFocus: monaco.Event<void>;
|
|
74
|
-
onBlur: monaco.Event<void>;
|
|
75
|
-
protected _specialEditorOptions: any;
|
|
76
|
-
protected _specialModelOptions: monaco.editor.ITextModelUpdateOptions;
|
|
77
|
-
protected _editorOptionsFromContribution: any;
|
|
78
|
-
protected readonly editorFeatureRegistry: IEditorFeatureRegistry;
|
|
79
|
-
protected readonly configurationService: IConfigurationService;
|
|
80
|
-
protected readonly decorationApplier: MonacoEditorDecorationApplier;
|
|
81
|
-
private _disableSelectionEmitter;
|
|
82
|
-
protected disableSelectionEmitter(): void;
|
|
83
|
-
protected enableSelectionEmitter(): void;
|
|
84
|
-
private injector;
|
|
85
|
-
constructor(monacoEditor: IMonacoCodeEditor, type: EditorType);
|
|
86
|
-
private onDidChangeModel;
|
|
87
|
-
getType(): EditorType;
|
|
88
|
-
updateOptions(editorOptions?: monaco.editor.IEditorOptions, modelOptions?: monaco.editor.ITextModelUpdateOptions): void;
|
|
89
|
-
private _doUpdateOptions;
|
|
90
|
-
/**
|
|
91
|
-
* 合并所有的选项
|
|
92
|
-
* 优先关系: (从高到底)
|
|
93
|
-
* 1. 当前编辑器的特殊选项(通过调用 updateOptions或者启动时传入)
|
|
94
|
-
* 2. 来自 featureRegistry 的根据 当前uri 提供的选项
|
|
95
|
-
* 3. 来自偏好设置的选项
|
|
96
|
-
*/
|
|
97
|
-
private _calculateFinalOptions;
|
|
98
|
-
insertSnippet(template: string, ranges: IRange[], opts: IUndoStopOptions): void;
|
|
99
|
-
applyDecoration(key: string, options: IDecorationApplyOptions[]): void;
|
|
100
|
-
onSelectionsChanged(listener: any): import("@opensumi/monaco-editor-core/esm/vs/base/common/lifecycle").IDisposable;
|
|
101
|
-
onVisibleRangesChanged(listener: any): Disposable;
|
|
102
|
-
setSelections(selections: any): void;
|
|
103
|
-
setSelection(selection: any): void;
|
|
104
|
-
save(): Promise<void>;
|
|
105
|
-
onConfigurationChanged(listener: any): import("@opensumi/monaco-editor-core/esm/vs/base/common/lifecycle").IDisposable;
|
|
106
|
-
}
|
|
107
64
|
export declare class BrowserCodeEditor extends BaseMonacoEditorWrapper implements ICodeEditor {
|
|
108
65
|
readonly monacoEditor: IMonacoCodeEditor;
|
|
109
66
|
private collectionService;
|
|
@@ -114,7 +71,7 @@ export declare class BrowserCodeEditor extends BaseMonacoEditorWrapper implement
|
|
|
114
71
|
onCursorPositionChanged: Event<CursorStatus>;
|
|
115
72
|
private _onRefOpen;
|
|
116
73
|
onRefOpen: Event<IEditorDocumentModelRef>;
|
|
117
|
-
get currentDocumentModel(): IEditorDocumentModel | null;
|
|
74
|
+
get currentDocumentModel(): import("./types").IEditorDocumentModel | null;
|
|
118
75
|
getType(): EditorType;
|
|
119
76
|
constructor(monacoEditor: IMonacoCodeEditor, options?: any);
|
|
120
77
|
layout(dimension?: monaco.IDimension, postponeRendering?: boolean): void;
|
|
@@ -128,11 +85,10 @@ export declare class BrowserDiffEditor extends WithEventBus implements IDiffEdit
|
|
|
128
85
|
readonly monacoDiffEditor: IMonacoDiffEditor;
|
|
129
86
|
private specialOptions;
|
|
130
87
|
private collectionService;
|
|
131
|
-
private appConfig;
|
|
132
88
|
private originalDocModelRef;
|
|
133
89
|
private modifiedDocModelRef;
|
|
134
|
-
get originalDocModel(): IEditorDocumentModel | null;
|
|
135
|
-
get modifiedDocModel(): IEditorDocumentModel | null;
|
|
90
|
+
get originalDocModel(): import("./types").IEditorDocumentModel | null;
|
|
91
|
+
get modifiedDocModel(): import("./types").IEditorDocumentModel | null;
|
|
136
92
|
originalEditor: ISumiEditor;
|
|
137
93
|
modifiedEditor: ISumiEditor;
|
|
138
94
|
_disposed: boolean;
|
|
@@ -160,9 +116,4 @@ export declare class BrowserDiffEditor extends WithEventBus implements IDiffEdit
|
|
|
160
116
|
focus(): void;
|
|
161
117
|
dispose(): void;
|
|
162
118
|
}
|
|
163
|
-
export declare class DiffEditorPart extends BaseMonacoEditorWrapper implements IEditor {
|
|
164
|
-
private getDocumentModel;
|
|
165
|
-
get currentDocumentModel(): IEditorDocumentModel | null;
|
|
166
|
-
constructor(monacoEditor: IMonacoCodeEditor, getDocumentModel: () => IEditorDocumentModel | null, type: EditorType);
|
|
167
|
-
}
|
|
168
119
|
//# sourceMappingURL=editor-collection.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-collection.service.d.ts","sourceRoot":"","sources":["../../src/browser/editor-collection.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAa,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"editor-collection.service.d.ts","sourceRoot":"","sources":["../../src/browser/editor-collection.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAa,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAEL,KAAK,EAEL,WAAW,EAEX,GAAG,EACH,YAAY,EAEb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AAExH,OAAO,EACL,YAAY,EAEZ,uBAAuB,EACvB,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,oBAAoB,EAErB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAyB,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAkB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CA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