@codingame/monaco-vscode-api 1.81.6 → 1.81.7-next.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/dist/default-extensions/npm/npmBrowserMain.js.map +1 -1
- package/dist/default-extensions/typescript-language-features/tsserver.web.js.map +1 -1
- package/dist/dist/types/src/service-override/tools/editor.d.ts +29 -4
- package/dist/missing-services.js +31 -5
- package/dist/service-override/configuration.d.ts +3 -3
- package/dist/service-override/editor.d.ts +3 -51
- package/dist/service-override/editor.js +14 -58
- package/dist/service-override/files.d.ts +4 -4
- package/dist/service-override/keybindings.d.ts +1 -1
- package/dist/service-override/languages.d.ts +1 -1
- package/dist/service-override/layout.d.ts +3 -3
- package/dist/service-override/output.d.ts +1 -1
- package/dist/service-override/terminal.d.ts +2 -2
- package/dist/service-override/tools/editor.js +372 -4
- package/dist/service-override/views.d.ts +6 -6
- package/dist/service-override/views.js +69 -40
- package/dist/vscode/vs/platform/workspace/common/workspaceTrust.d.ts +23 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.d.ts +20 -0
- package/dist/vscode/vs/workbench/services/editor/browser/editorService.d.ts +105 -0
- package/monaco-editor-treemending.patch +919 -919
- package/package.json +1 -1
|
@@ -1,8 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEditorPane, IUntypedEditorInput, IUntitledTextResourceEditorInput, IResourceDiffEditorInput, ITextDiffEditorPane } from '../../../../../vscode/vs/workbench/common/editor.js';
|
|
2
|
+
import { IConfigurationService } from '../../../../../vscode/vs/platform/configuration/common/configuration.js';
|
|
3
|
+
import { IResolvedTextEditorModel, ITextModelService } from '../../../../../vscode/vs/editor/common/services/resolverService.js';
|
|
4
|
+
import { IInstantiationService } from '../../../../../vscode/vs/platform/instantiation/common/instantiation.js';
|
|
2
5
|
import { IReference } from '../../../../../vscode/vs/base/common/lifecycle.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
6
|
+
import { IFileService } from '../../../../../vscode/vs/platform/files/common/files.js';
|
|
7
|
+
import { IWorkspaceContextService } from '../../../../../vscode/vs/platform/workspace/common/workspace.js';
|
|
8
|
+
import { IUriIdentityService } from '../../../../../vscode/vs/platform/uriIdentity/common/uriIdentity.js';
|
|
9
|
+
import { ICodeEditor, IDiffEditor } from '../../../../../vscode/vs/editor/browser/editorBrowser.js';
|
|
10
|
+
import { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput } from '../../../../../vscode/vs/platform/editor/common/editor.js';
|
|
11
|
+
import { IEditorGroupsService } from '../../../../../vscode/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
12
|
+
import { EditorInput } from '../../../../../vscode/vs/workbench/common/editor/editorInput.js';
|
|
13
|
+
import { PreferredGroup } from '../../../../../vscode/vs/workbench/services/editor/common/editorService.js';
|
|
14
|
+
import { IEditorResolverService } from '../../../../../vscode/vs/workbench/services/editor/common/editorResolverService.js';
|
|
15
|
+
import { ITextEditorService } from '../../../../../vscode/vs/workbench/services/textfile/common/textEditorService.js';
|
|
16
|
+
import { IHostService } from '../../../../../vscode/vs/workbench/services/host/browser/host.js';
|
|
17
|
+
import { EditorService } from '../../../../../vscode/vs/workbench/services/editor/browser/editorService.js';
|
|
18
|
+
import { IWorkspaceTrustRequestService } from '../../../../../vscode/vs/platform/workspace/common/workspaceTrust.js';
|
|
5
19
|
|
|
6
20
|
type OpenEditor = (modelRef: IReference<IResolvedTextEditorModel>, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise<ICodeEditor | undefined>;
|
|
21
|
+
declare class MonacoEditorService extends EditorService {
|
|
22
|
+
private _isEditorPartVisible;
|
|
23
|
+
constructor(_openEditorFallback: OpenEditor | undefined, _isEditorPartVisible: () => boolean, _editorGroupService: IEditorGroupsService, instantiationService: IInstantiationService, fileService: IFileService, configurationService: IConfigurationService, contextService: IWorkspaceContextService, uriIdentityService: IUriIdentityService, editorResolverService: IEditorResolverService, workspaceTrustRequestService: IWorkspaceTrustRequestService, hostService: IHostService, textEditorService: ITextEditorService, textModelService: ITextModelService);
|
|
24
|
+
get activeTextEditorControl(): ICodeEditor | IDiffEditor | undefined;
|
|
25
|
+
openEditor(editor: EditorInput, options?: IEditorOptions, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
26
|
+
openEditor(editor: IUntypedEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
27
|
+
openEditor(editor: IResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
28
|
+
openEditor(editor: ITextResourceEditorInput | IUntitledTextResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
29
|
+
openEditor(editor: IResourceDiffEditorInput, group?: PreferredGroup): Promise<ITextDiffEditorPane | undefined>;
|
|
30
|
+
openEditor(editor: EditorInput | IUntypedEditorInput, optionsOrPreferredGroup?: IEditorOptions | PreferredGroup, preferredGroup?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
31
|
+
}
|
|
7
32
|
|
|
8
|
-
export { OpenEditor };
|
|
33
|
+
export { MonacoEditorService, OpenEditor };
|
package/dist/missing-services.js
CHANGED
|
@@ -265,6 +265,21 @@ registerSingleton(IFileService, class FileService {
|
|
|
265
265
|
}, 0 );
|
|
266
266
|
class EmptyEditorGroup {
|
|
267
267
|
constructor() {
|
|
268
|
+
this.onDidFocus = Event.None;
|
|
269
|
+
this.onDidOpenEditorFail = Event.None;
|
|
270
|
+
this.whenRestored = Promise.resolve();
|
|
271
|
+
this.disposed = false;
|
|
272
|
+
this.setActive = unsupported;
|
|
273
|
+
this.notifyIndexChanged = unsupported;
|
|
274
|
+
this.relayout = unsupported;
|
|
275
|
+
this.dispose = unsupported;
|
|
276
|
+
this.toJSON = unsupported;
|
|
277
|
+
this.minimumWidth = 0;
|
|
278
|
+
this.maximumWidth = Number.POSITIVE_INFINITY;
|
|
279
|
+
this.minimumHeight = 0;
|
|
280
|
+
this.maximumHeight = Number.POSITIVE_INFINITY;
|
|
281
|
+
this.onDidChange = Event.None;
|
|
282
|
+
this.layout = unsupported;
|
|
268
283
|
this.onDidModelChange = Event.None;
|
|
269
284
|
this.onWillDispose = Event.None;
|
|
270
285
|
this.onDidActiveEditorChange = Event.None;
|
|
@@ -309,12 +324,18 @@ class EmptyEditorGroup {
|
|
|
309
324
|
this.isFirst = () => true;
|
|
310
325
|
this.isLast = () => true;
|
|
311
326
|
}
|
|
327
|
+
get titleHeight() {
|
|
328
|
+
return unsupported();
|
|
329
|
+
}
|
|
330
|
+
get element() {
|
|
331
|
+
return unsupported();
|
|
332
|
+
}
|
|
312
333
|
get scopedContextKeyService() { return StandaloneServices.get(IContextKeyService); }
|
|
313
334
|
focus() {
|
|
314
335
|
}
|
|
315
336
|
}
|
|
316
337
|
const fakeActiveGroup = new EmptyEditorGroup();
|
|
317
|
-
|
|
338
|
+
class EmptyEditorGroupsService {
|
|
318
339
|
constructor() {
|
|
319
340
|
this._serviceBrand = undefined;
|
|
320
341
|
this.getLayout = unsupported;
|
|
@@ -352,13 +373,14 @@ registerSingleton(IEditorGroupsService, class EditorGroupsService {
|
|
|
352
373
|
this.mergeGroup = unsupported;
|
|
353
374
|
this.mergeAllGroups = unsupported;
|
|
354
375
|
this.copyGroup = unsupported;
|
|
376
|
+
this.partOptions = {};
|
|
355
377
|
this.onDidChangeEditorPartOptions = Event.None;
|
|
356
378
|
this.enforcePartOptions = unsupported;
|
|
357
379
|
}
|
|
358
380
|
get contentDimension() { return unsupported(); }
|
|
359
381
|
get sideGroup() { return unsupported(); }
|
|
360
|
-
|
|
361
|
-
|
|
382
|
+
}
|
|
383
|
+
registerSingleton(IEditorGroupsService, EmptyEditorGroupsService, 0 );
|
|
362
384
|
registerSingleton(IWorkingCopyFileService, WorkingCopyFileService, 0 );
|
|
363
385
|
registerSingleton(IPathService, BrowserPathService, 1 );
|
|
364
386
|
registerSingleton(IProductService, class ProductService {
|
|
@@ -1092,8 +1114,11 @@ registerSingleton(IUpdateService, class UpdateService {
|
|
|
1092
1114
|
registerSingleton(IStatusbarService, class StatusbarService {
|
|
1093
1115
|
constructor() {
|
|
1094
1116
|
this.onDidChangeEntryVisibility = Event.None;
|
|
1095
|
-
this.addEntry =
|
|
1096
|
-
|
|
1117
|
+
this.addEntry = () => ({
|
|
1118
|
+
dispose: () => { },
|
|
1119
|
+
update: () => { }
|
|
1120
|
+
});
|
|
1121
|
+
this.isEntryVisible = () => false;
|
|
1097
1122
|
this.updateEntryVisibility = unsupported;
|
|
1098
1123
|
this.focus = unsupported;
|
|
1099
1124
|
this.focusNextEntry = unsupported;
|
|
@@ -2030,3 +2055,4 @@ registerSingleton(INotebookSearchService, class NotebookSearchService {
|
|
|
2030
2055
|
};
|
|
2031
2056
|
}
|
|
2032
2057
|
}, 1 );
|
|
2058
|
+
export { EmptyEditorGroupsService };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as vscode from 'vscode';
|
|
2
|
-
import {
|
|
2
|
+
import { URI } from '../vscode/vs/base/common/uri.js';
|
|
3
|
+
export { IAnyWorkspaceIdentifier } from '../vscode/vs/platform/workspace/common/workspace.js';
|
|
3
4
|
import { IConfigurationRegistry } from '../vscode/vs/platform/configuration/common/configurationRegistry.js';
|
|
4
5
|
export { ConfigurationScope, IConfigurationDefaults, IConfigurationNode } from '../vscode/vs/platform/configuration/common/configurationRegistry.js';
|
|
6
|
+
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
5
7
|
export { IColorCustomizations, IThemeScopedColorCustomizations } from '../vscode/vs/workbench/services/themes/common/workbenchThemeService.js';
|
|
6
|
-
export { IAnyWorkspaceIdentifier } from '../vscode/vs/platform/workspace/common/workspace.js';
|
|
7
8
|
export { IWorkspaceFolderCreationData } from '../vscode/vs/platform/workspaces/common/workspaces.js';
|
|
8
|
-
import { URI } from '../vscode/vs/base/common/uri.js';
|
|
9
9
|
|
|
10
10
|
declare function updateUserConfiguration(configurationJson: string): Promise<void>;
|
|
11
11
|
declare function getUserConfiguration(): Promise<string>;
|
|
@@ -1,58 +1,10 @@
|
|
|
1
1
|
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
|
-
import { ITextModelService } from '../vscode/vs/editor/common/services/resolverService.js';
|
|
3
2
|
export { IResolvedTextEditorModel } from '../vscode/vs/editor/common/services/resolverService.js';
|
|
4
|
-
|
|
5
|
-
import { IEditorCloseEvent, IVisibleEditorPane, EditorsOrder, IEditorIdentifier, IEditorPane, IUntypedEditorInput, IUntitledTextResourceEditorInput, IResourceDiffEditorInput, ITextDiffEditorPane, EditorInputWithOptions, GroupIdentifier, IFindEditorOptions, IRevertOptions } from '../vscode/vs/workbench/common/editor.js';
|
|
6
|
-
import { Event } from '../vscode/vs/base/common/event.js';
|
|
7
|
-
import { EditorInput } from '../vscode/vs/workbench/common/editor/editorInput.js';
|
|
8
|
-
import { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput, IResourceEditorInputIdentifier } from '../vscode/vs/platform/editor/common/editor.js';
|
|
9
|
-
import { IEditor } from '../vscode/vs/editor/common/editorCommon.js';
|
|
10
|
-
import { Disposable } from '../vscode/vs/base/common/lifecycle.js';
|
|
3
|
+
export { IEditorOptions } from '../vscode/vs/platform/editor/common/editor.js';
|
|
11
4
|
export { IReference } from '../vscode/vs/base/common/lifecycle.js';
|
|
12
|
-
import { IDiffEditor } from '../vscode/vs/editor/browser/editorBrowser.js';
|
|
13
|
-
import { IEditorReplacement, IEditorGroup, ICloseEditorOptions } from '../vscode/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
14
|
-
import { URI } from '../vscode/vs/base/common/uri.js';
|
|
15
5
|
import { OpenEditor } from '../dist/types/src/service-override/tools/editor.js';
|
|
6
|
+
export { MonacoEditorService } from '../dist/types/src/service-override/tools/editor.js';
|
|
16
7
|
|
|
17
|
-
declare class SimpleEditorService extends Disposable implements IEditorService {
|
|
18
|
-
activeTextEditorControl: IEditor | undefined;
|
|
19
|
-
private _onDidActiveEditorChange;
|
|
20
|
-
constructor(_openEditor: OpenEditor, textModelService: ITextModelService);
|
|
21
|
-
readonly _serviceBrand: undefined;
|
|
22
|
-
onDidActiveEditorChange: Event<void>;
|
|
23
|
-
onDidVisibleEditorsChange: Event<void>;
|
|
24
|
-
onDidEditorsChange: Event<IEditorsChangeEvent>;
|
|
25
|
-
onDidCloseEditor: Event<IEditorCloseEvent>;
|
|
26
|
-
activeEditorPane: IVisibleEditorPane | undefined;
|
|
27
|
-
activeEditor: EditorInput | undefined;
|
|
28
|
-
activeTextEditorLanguageId: string | undefined;
|
|
29
|
-
visibleEditorPanes: IVisibleEditorPane[];
|
|
30
|
-
visibleEditors: EditorInput[];
|
|
31
|
-
visibleTextEditorControls: Array<IEditor | IDiffEditor>;
|
|
32
|
-
editors: EditorInput[];
|
|
33
|
-
count: number;
|
|
34
|
-
getEditors: (order: EditorsOrder, options?: {
|
|
35
|
-
excludeSticky?: boolean;
|
|
36
|
-
}) => readonly IEditorIdentifier[];
|
|
37
|
-
openEditor(editor: EditorInput, options?: IEditorOptions, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
38
|
-
openEditor(editor: IUntypedEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
39
|
-
openEditor(editor: IResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
40
|
-
openEditor(editor: ITextResourceEditorInput | IUntitledTextResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
41
|
-
openEditor(editor: IResourceDiffEditorInput, group?: PreferredGroup): Promise<ITextDiffEditorPane | undefined>;
|
|
42
|
-
openEditor(editor: EditorInput | IUntypedEditorInput, optionsOrPreferredGroup?: IEditorOptions | PreferredGroup, preferredGroup?: PreferredGroup): Promise<IEditorPane | undefined>;
|
|
43
|
-
openEditors: (editors: Array<EditorInputWithOptions | IUntypedEditorInput>, preferredGroup?: PreferredGroup, options?: IOpenEditorsOptions) => Promise<IEditorPane[]>;
|
|
44
|
-
replaceEditors: (replacements: Array<IEditorReplacement | IUntypedEditorReplacement>, group: IEditorGroup | GroupIdentifier) => Promise<void>;
|
|
45
|
-
isOpened: (editor: IResourceEditorInputIdentifier) => boolean;
|
|
46
|
-
isVisible: (editor: EditorInput) => boolean;
|
|
47
|
-
findEditors(resource: URI, options?: IFindEditorOptions): readonly IEditorIdentifier[];
|
|
48
|
-
findEditors(editor: IResourceEditorInputIdentifier, options?: IFindEditorOptions): readonly IEditorIdentifier[];
|
|
49
|
-
save: (editors: IEditorIdentifier | IEditorIdentifier[], options?: ISaveEditorsOptions) => Promise<ISaveEditorsResult>;
|
|
50
|
-
saveAll: (options?: ISaveAllEditorsOptions) => Promise<ISaveEditorsResult>;
|
|
51
|
-
revert: (editors: IEditorIdentifier | IEditorIdentifier[], options?: IRevertOptions) => Promise<boolean>;
|
|
52
|
-
revertAll: (options?: IRevertAllEditorsOptions) => Promise<boolean>;
|
|
53
|
-
closeEditor: (editor: IEditorIdentifier, options?: ICloseEditorOptions) => Promise<void>;
|
|
54
|
-
closeEditors: (editors: readonly IEditorIdentifier[], options?: ICloseEditorOptions) => Promise<void>;
|
|
55
|
-
}
|
|
56
8
|
declare function getServiceOverride(openEditor: OpenEditor): IEditorOverrideServices;
|
|
57
9
|
|
|
58
|
-
export {
|
|
10
|
+
export { OpenEditor, getServiceOverride as default };
|
|
@@ -1,71 +1,26 @@
|
|
|
1
1
|
import { __decorate, __param } from '../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import '../missing-services.js';
|
|
3
|
-
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
4
|
-
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
5
2
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
6
3
|
import { CodeEditorService } from '../vscode/vs/workbench/services/editor/browser/codeEditorService.js';
|
|
7
4
|
import { IEditorService } from '../vscode/vs/workbench/services/editor/common/editorService.js';
|
|
8
5
|
import { EditorExtensions } from '../vscode/vs/workbench/common/editor.js';
|
|
9
|
-
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
10
6
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
11
|
-
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
12
7
|
import { ITextEditorService, TextEditorService } from '../vscode/vs/workbench/services/textfile/common/textEditorService.js';
|
|
13
8
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
14
9
|
import { FILE_EDITOR_INPUT_ID } from '../vscode/vs/workbench/contrib/files/common/files.js';
|
|
15
|
-
import {
|
|
10
|
+
import { IEditorGroupsService } from '../vscode/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
11
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
12
|
+
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
16
13
|
import { unsupported } from '../tools.js';
|
|
14
|
+
import { EmptyEditorGroupsService } from '../missing-services.js';
|
|
17
15
|
import '../vscode/vs/workbench/browser/parts/editor/editor.contribution.js';
|
|
18
|
-
let
|
|
19
|
-
constructor(
|
|
20
|
-
super();
|
|
21
|
-
this._onDidActiveEditorChange = this._register(new Emitter());
|
|
22
|
-
this.onDidActiveEditorChange = this._onDidActiveEditorChange.event;
|
|
23
|
-
this.onDidVisibleEditorsChange = Event.None;
|
|
24
|
-
this.onDidEditorsChange = Event.None;
|
|
25
|
-
this.onDidCloseEditor = Event.None;
|
|
26
|
-
this.visibleEditorPanes = [];
|
|
27
|
-
this.visibleEditors = [];
|
|
28
|
-
this.visibleTextEditorControls = [];
|
|
29
|
-
this.editors = [];
|
|
30
|
-
this.count = 0;
|
|
31
|
-
this.getEditors = () => [];
|
|
32
|
-
this.openEditors = unsupported;
|
|
33
|
-
this.replaceEditors = unsupported;
|
|
34
|
-
this.isOpened = () => false;
|
|
35
|
-
this.isVisible = () => false;
|
|
36
|
-
this.save = async () => ({ success: true, editors: [] });
|
|
37
|
-
this.saveAll = async () => ({ success: true, editors: [] });
|
|
38
|
-
this.revert = unsupported;
|
|
39
|
-
this.revertAll = unsupported;
|
|
40
|
-
this.closeEditor = unsupported;
|
|
41
|
-
this.closeEditors = unsupported;
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
const codeEditorService = StandaloneServices.get(ICodeEditorService);
|
|
44
|
-
this.activeTextEditorControl = codeEditorService.getFocusedCodeEditor() ?? undefined;
|
|
45
|
-
const handleCodeEditor = (editor) => {
|
|
46
|
-
const onEditorFocused = () => {
|
|
47
|
-
const newFocusedEditor = codeEditorService.getFocusedCodeEditor();
|
|
48
|
-
if (newFocusedEditor !== this.activeTextEditorControl) {
|
|
49
|
-
this.activeTextEditorControl = newFocusedEditor ?? undefined;
|
|
50
|
-
this._onDidActiveEditorChange.fire();
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
editor.onDidFocusEditorText(onEditorFocused);
|
|
54
|
-
editor.onDidFocusEditorWidget(onEditorFocused);
|
|
55
|
-
};
|
|
56
|
-
this._register(codeEditorService.onCodeEditorAdd(handleCodeEditor));
|
|
57
|
-
codeEditorService.listCodeEditors().forEach(handleCodeEditor);
|
|
58
|
-
});
|
|
59
|
-
this.openEditor = wrapOpenEditor(textModelService, this.openEditor.bind(this), _openEditor);
|
|
16
|
+
let MonacoEditorGroupsService = class MonacoEditorGroupsService extends MonacoDelegateEditorGroupsService {
|
|
17
|
+
constructor(instantiationService) {
|
|
18
|
+
super(instantiationService.createInstance(EmptyEditorGroupsService), instantiationService);
|
|
60
19
|
}
|
|
61
|
-
async openEditor(_editor, _optionsOrPreferredGroup, _preferredGroup) {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
findEditors() { return []; }
|
|
65
20
|
};
|
|
66
|
-
|
|
67
|
-
( __param(
|
|
68
|
-
],
|
|
21
|
+
MonacoEditorGroupsService = __decorate([
|
|
22
|
+
( __param(0, IInstantiationService))
|
|
23
|
+
], MonacoEditorGroupsService);
|
|
69
24
|
( Registry.as(EditorExtensions.EditorFactory)).registerFileEditorFactory({
|
|
70
25
|
typeId: FILE_EDITOR_INPUT_ID,
|
|
71
26
|
createFileEditor: unsupported,
|
|
@@ -74,8 +29,9 @@ SimpleEditorService = __decorate([
|
|
|
74
29
|
function getServiceOverride(openEditor) {
|
|
75
30
|
return {
|
|
76
31
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, undefined, true),
|
|
77
|
-
[( IEditorService.toString())]: new SyncDescriptor(
|
|
78
|
-
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false)
|
|
32
|
+
[( IEditorService.toString())]: new SyncDescriptor(MonacoEditorService, [openEditor, () => false], true),
|
|
33
|
+
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
34
|
+
[( IEditorGroupsService.toString())]: new SyncDescriptor(MonacoEditorGroupsService)
|
|
79
35
|
};
|
|
80
36
|
}
|
|
81
|
-
export {
|
|
37
|
+
export { MonacoEditorService, getServiceOverride as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { InMemoryFileSystemProvider } from '../vscode/vs/platform/files/common/inMemoryFilesystemProvider.js';
|
|
1
|
+
import { Emitter, Event } from '../vscode/vs/base/common/event.js';
|
|
3
2
|
import { URI } from '../vscode/vs/base/common/uri.js';
|
|
3
|
+
import { Disposable, IDisposable } from '../vscode/vs/base/common/lifecycle.js';
|
|
4
4
|
import { FileType, IStat, IFileSystemProviderWithFileReadWriteCapability, IFileChange } from '../vscode/vs/platform/files/common/files.js';
|
|
5
5
|
export { FileChangeType, FilePermission, FileSystemProviderCapabilities, FileSystemProviderError, FileSystemProviderErrorCode, IFileDeleteOptions, IFileOverwriteOptions, IFileWriteOptions, IWatchOptions } from '../vscode/vs/platform/files/common/files.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
7
|
+
export { InMemoryFileSystemProvider } from '../vscode/vs/platform/files/common/inMemoryFilesystemProvider.js';
|
|
8
8
|
export { HTMLFileSystemProvider } from '../vscode/vs/platform/files/browser/htmlFileSystemProvider.js';
|
|
9
9
|
|
|
10
10
|
declare abstract class RegisteredFile {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
1
|
export { IUserFriendlyKeybinding } from '../vscode/vs/platform/keybinding/common/keybinding.js';
|
|
2
|
+
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
3
3
|
|
|
4
4
|
declare function updateUserKeybindings(keybindingsJson: string): Promise<void>;
|
|
5
5
|
declare function getServiceOverride(): IEditorOverrideServices;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IInstantiationService } from '../vscode/vs/platform/instantiation/common/instantiation.js';
|
|
1
2
|
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
3
|
import { IWorkbenchContribution } from '../vscode/vs/workbench/common/contributions.js';
|
|
3
|
-
import { IInstantiationService } from '../vscode/vs/platform/instantiation/common/instantiation.js';
|
|
4
4
|
|
|
5
5
|
declare class ExtensionPoints implements IWorkbenchContribution {
|
|
6
6
|
private readonly instantiationService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Event } from '../vscode/vs/base/common/event.js';
|
|
2
|
+
import { ServicesAccessor } from '../vscode/vs/platform/instantiation/common/instantiation.js';
|
|
3
|
+
import { Dimension, IDimension } from '../vscode/vs/base/browser/dom.js';
|
|
1
4
|
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
5
|
import { IWorkbenchLayoutService, Parts, PanelAlignment, Position } from '../vscode/vs/workbench/services/layout/browser/layoutService.js';
|
|
3
6
|
import { ILayoutService, ILayoutOffsetInfo } from '../vscode/vs/platform/layout/browser/layoutService.js';
|
|
4
|
-
import { Event } from '../vscode/vs/base/common/event.js';
|
|
5
|
-
import { Dimension, IDimension } from '../vscode/vs/base/browser/dom.js';
|
|
6
7
|
import { Part } from '../vscode/vs/workbench/browser/part.js';
|
|
7
|
-
import { ServicesAccessor } from '../vscode/vs/platform/instantiation/common/instantiation.js';
|
|
8
8
|
|
|
9
9
|
declare class LayoutService implements ILayoutService, IWorkbenchLayoutService {
|
|
10
10
|
container: HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
1
|
import { LogLevel } from '../vscode/vs/platform/log/common/log.js';
|
|
2
|
+
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
3
3
|
|
|
4
4
|
declare function getServiceOverride(logLevel?: LogLevel): IEditorOverrideServices;
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
|
-
import { ITerminalBackend, IPtyHostLatencyMeasurement, ITerminalProfile, ITerminalsLayoutInfo, ITerminalChildProcess, ITerminalLaunchError, IProcessReadyEvent } from '../vscode/vs/platform/terminal/common/terminal.js';
|
|
3
1
|
import { Event } from '../vscode/vs/base/common/event.js';
|
|
4
2
|
import { IProcessEnvironment } from '../vscode/vs/base/common/platform.js';
|
|
5
3
|
import { PerformanceMark } from '../vscode/vs/base/common/performance.js';
|
|
6
4
|
import { unsupported } from '../dist/types/src/tools.js';
|
|
5
|
+
import { IEditorOverrideServices } from '../vscode/vs/editor/standalone/browser/standaloneServices.js';
|
|
6
|
+
import { ITerminalBackend, IPtyHostLatencyMeasurement, ITerminalProfile, ITerminalsLayoutInfo, ITerminalChildProcess, ITerminalLaunchError, IProcessReadyEvent } from '../vscode/vs/platform/terminal/common/terminal.js';
|
|
7
7
|
|
|
8
8
|
declare abstract class SimpleTerminalBackend implements ITerminalBackend {
|
|
9
9
|
getLatency: () => Promise<IPtyHostLatencyMeasurement[]>;
|