@codingame/monaco-vscode-editor-service-override 11.1.2 → 12.0.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/index.d.ts CHANGED
@@ -1,2 +1,8 @@
1
- export * from 'vscode/service-override/editor';
2
- export { default } from 'vscode/service-override/editor';
1
+ import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
2
+ import type { IResolvedTextEditorModel } from "vscode/vscode/vs/editor/common/services/resolverService";
3
+ import type { IEditorOptions } from "vscode/vscode/vs/platform/editor/common/editor";
4
+ import type { IReference } from "vscode/vscode/vs/base/common/lifecycle";
5
+ import { MonacoEditorService, type OpenEditor } from "./service-override/tools/editor.js";
6
+ export default function getServiceOverride(openEditor: OpenEditor): IEditorOverrideServices;
7
+ export { MonacoEditorService };
8
+ export type { OpenEditor, IEditorOptions, IResolvedTextEditorModel, IReference };
package/index.js CHANGED
@@ -1,2 +1,159 @@
1
- export { default } from './editor.js';
2
- export { MonacoEditorService } from './tools/editor.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
+ import { Event } from 'vscode/vscode/vs/base/common/event';
4
+ import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
5
+ import { CodeEditorService } from '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/services/editor/browser/codeEditorService';
6
+ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
7
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
8
+ import { TextEditorService } from '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/services/textfile/common/textEditorService';
9
+ import { ITextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService.service';
10
+ import { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
11
+ import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
12
+ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
13
+ import { DEFAULT_EDITOR_PART_OPTIONS } from 'vscode/vscode/vs/workbench/browser/parts/editor/editor';
14
+ import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
15
+ import { fakeActiveGroup, MonacoDelegateEditorGroupsService, MonacoEditorService } from '@codingame/monaco-vscode-e97d19fd-ad95-5915-8104-6f1a86c7b652-common/service-override/tools/editor';
16
+ export { MonacoEditorService } from '@codingame/monaco-vscode-e97d19fd-ad95-5915-8104-6f1a86c7b652-common/service-override/tools/editor';
17
+ import { unsupported } from 'vscode/tools';
18
+ import '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
19
+ import '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory';
20
+ import '@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common/vscode/vs/workbench/contrib/files/browser/fileCommands._save';
21
+
22
+ class EmptyEditorPart {
23
+ constructor() {
24
+ this.onWillDispose = Event.None;
25
+ this.hasMaximizedGroup = () => false;
26
+ this.windowId = mainWindow.vscodeWindowId;
27
+ this.onDidLayout = Event.None;
28
+ this.onDidScroll = Event.None;
29
+ this.isReady = true;
30
+ this.whenReady = Promise.resolve();
31
+ this.whenRestored = Promise.resolve();
32
+ this.hasRestorableState = false;
33
+ this.centerLayout = unsupported;
34
+ this.isLayoutCentered = unsupported;
35
+ this.enforcePartOptions = unsupported;
36
+ this.onDidChangeActiveGroup = Event.None;
37
+ this.onDidAddGroup = Event.None;
38
+ this.onDidRemoveGroup = Event.None;
39
+ this.onDidMoveGroup = Event.None;
40
+ this.onDidActivateGroup = Event.None;
41
+ this.onDidChangeGroupIndex = Event.None;
42
+ this.onDidChangeGroupLocked = Event.None;
43
+ this.onDidChangeGroupMaximized = Event.None;
44
+ this.activeGroup = fakeActiveGroup;
45
+ this.groups = [fakeActiveGroup];
46
+ this.count = 0;
47
+ this.orientation = GroupOrientation.HORIZONTAL;
48
+ this.getGroups = () => [];
49
+ this.getGroup = () => undefined;
50
+ this.activateGroup = unsupported;
51
+ this.getSize = unsupported;
52
+ this.setSize = unsupported;
53
+ this.arrangeGroups = unsupported;
54
+ this.toggleMaximizeGroup = unsupported;
55
+ this.toggleExpandGroup = unsupported;
56
+ this.applyLayout = unsupported;
57
+ this.getLayout = unsupported;
58
+ this.setGroupOrientation = unsupported;
59
+ this.findGroup = () => undefined;
60
+ this.addGroup = unsupported;
61
+ this.removeGroup = unsupported;
62
+ this.moveGroup = unsupported;
63
+ this.mergeGroup = unsupported;
64
+ this.mergeAllGroups = unsupported;
65
+ this.copyGroup = unsupported;
66
+ this.partOptions = DEFAULT_EDITOR_PART_OPTIONS;
67
+ this.onDidChangeEditorPartOptions = Event.None;
68
+ this.createEditorDropTarget = unsupported;
69
+ }
70
+ get contentDimension() {
71
+ return unsupported();
72
+ }
73
+ get sideGroup() {
74
+ return unsupported();
75
+ }
76
+ }
77
+ class EmptyEditorGroupsService {
78
+ constructor() {
79
+ this.getScopedInstantiationService = unsupported;
80
+ this.registerContextKeyProvider = unsupported;
81
+ this.saveWorkingSet = unsupported;
82
+ this.getWorkingSets = unsupported;
83
+ this.applyWorkingSet = unsupported;
84
+ this.deleteWorkingSet = unsupported;
85
+ this.onDidCreateAuxiliaryEditorPart = Event.None;
86
+ this.mainPart = new EmptyEditorPart();
87
+ this.activePart = this.mainPart;
88
+ this.parts = [this.mainPart];
89
+ this.getPart = unsupported;
90
+ this.createAuxiliaryEditorPart = unsupported;
91
+ this.onDidChangeGroupMaximized = Event.None;
92
+ this.toggleMaximizeGroup = unsupported;
93
+ this.toggleExpandGroup = unsupported;
94
+ this.partOptions = DEFAULT_EDITOR_PART_OPTIONS;
95
+ this.createEditorDropTarget = unsupported;
96
+ this._serviceBrand = undefined;
97
+ this.getLayout = unsupported;
98
+ this.onDidChangeActiveGroup = Event.None;
99
+ this.onDidAddGroup = Event.None;
100
+ this.onDidRemoveGroup = Event.None;
101
+ this.onDidMoveGroup = Event.None;
102
+ this.onDidActivateGroup = Event.None;
103
+ this.onDidLayout = Event.None;
104
+ this.onDidScroll = Event.None;
105
+ this.onDidChangeGroupIndex = Event.None;
106
+ this.onDidChangeGroupLocked = Event.None;
107
+ this.activeGroup = fakeActiveGroup;
108
+ this.groups = [fakeActiveGroup];
109
+ this.count = 0;
110
+ this.orientation = GroupOrientation.HORIZONTAL;
111
+ this.isReady = false;
112
+ this.whenReady = Promise.resolve();
113
+ this.whenRestored = Promise.resolve();
114
+ this.hasRestorableState = false;
115
+ this.getGroups = () => [];
116
+ this.getGroup = () => undefined;
117
+ this.activateGroup = unsupported;
118
+ this.getSize = unsupported;
119
+ this.setSize = unsupported;
120
+ this.arrangeGroups = unsupported;
121
+ this.applyLayout = unsupported;
122
+ this.centerLayout = unsupported;
123
+ this.isLayoutCentered = () => false;
124
+ this.setGroupOrientation = unsupported;
125
+ this.findGroup = () => undefined;
126
+ this.addGroup = unsupported;
127
+ this.removeGroup = unsupported;
128
+ this.moveGroup = unsupported;
129
+ this.mergeGroup = unsupported;
130
+ this.mergeAllGroups = unsupported;
131
+ this.copyGroup = unsupported;
132
+ this.onDidChangeEditorPartOptions = Event.None;
133
+ this.enforcePartOptions = unsupported;
134
+ }
135
+ get contentDimension() {
136
+ return unsupported();
137
+ }
138
+ get sideGroup() {
139
+ return unsupported();
140
+ }
141
+ }
142
+ let MonacoEditorGroupsService = class MonacoEditorGroupsService extends MonacoDelegateEditorGroupsService {
143
+ constructor(instantiationService) {
144
+ super(instantiationService.createInstance(EmptyEditorGroupsService), true, instantiationService);
145
+ }
146
+ };
147
+ MonacoEditorGroupsService = __decorate([
148
+ __param(0, IInstantiationService)
149
+ ], MonacoEditorGroupsService);
150
+ function getServiceOverride(openEditor) {
151
+ return {
152
+ [ICodeEditorService.toString()]: new SyncDescriptor(CodeEditorService, undefined, true),
153
+ [IEditorService.toString()]: new SyncDescriptor(MonacoEditorService, [openEditor, () => false], true),
154
+ [ITextEditorService.toString()]: new SyncDescriptor(TextEditorService, [], false),
155
+ [IEditorGroupsService.toString()]: new SyncDescriptor(MonacoEditorGroupsService)
156
+ };
157
+ }
158
+
159
+ export { getServiceOverride as default };
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-editor-service-override",
3
- "version": "11.1.2",
3
+ "version": "12.0.0",
4
+ "private": false,
5
+ "description": "VSCode public API plugged on the monaco editor - editor service-override",
4
6
  "keywords": [],
5
7
  "author": {
6
8
  "name": "CodinGame",
@@ -12,8 +14,28 @@
12
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
13
15
  },
14
16
  "type": "module",
15
- "private": false,
16
- "description": "VSCode public API plugged on the monaco editor - editor service-override",
17
+ "dependencies": {
18
+ "@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common": "12.0.0",
19
+ "@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "12.0.0",
20
+ "@codingame/monaco-vscode-e97d19fd-ad95-5915-8104-6f1a86c7b652-common": "12.0.0",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
22
+ },
23
+ "peerDependencies": {
24
+ "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": "12.0.0",
25
+ "@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common": "12.0.0",
26
+ "@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "12.0.0"
27
+ },
28
+ "peerDependenciesMeta": {
29
+ "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": {
30
+ "optional": true
31
+ },
32
+ "@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common": {
33
+ "optional": true
34
+ },
35
+ "@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": {
36
+ "optional": true
37
+ }
38
+ },
17
39
  "main": "index.js",
18
40
  "module": "index.js",
19
41
  "types": "index.d.ts",
@@ -22,10 +44,12 @@
22
44
  "default": "./index.js"
23
45
  },
24
46
  "./vscode/*": {
25
- "default": "./vscode/src/*.js"
47
+ "default": "./vscode/src/*.js",
48
+ "types": "./vscode/src/*.d.ts"
49
+ },
50
+ "./*": {
51
+ "default": "./*.js",
52
+ "types": "./*.d.ts"
26
53
  }
27
- },
28
- "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
30
54
  }
31
55
  }
@@ -0,0 +1,286 @@
1
+ import { type PreferredGroup } from "vscode/vscode/vs/workbench/services/editor/common/editorService";
2
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
3
+ import { type EditorInputWithOptions, type IActiveEditorChangeEvent, type IEditorCloseEvent, type IEditorControl, type IEditorPane, type IEditorWillOpenEvent, type IResourceDiffEditorInput, type ITextDiffEditorPane, type IUntitledTextResourceEditorInput, type IUntypedEditorInput, type IVisibleEditorPane } from "vscode/vscode/vs/workbench/common/editor";
4
+ import { EditorInput } from "vscode/vscode/vs/workbench/common/editor/editorInput";
5
+ import type { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput } from "vscode/vscode/vs/platform/editor/common/editor";
6
+ import type { ICodeEditor, IDiffEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
7
+ import { type IEditorGroupView } from "vscode/vscode/vs/workbench/browser/parts/editor/editor";
8
+ import { type IResolvedTextEditorModel, ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
9
+ import { type IStandaloneCodeEditor } from "vscode/vscode/vs/editor/standalone/browser/standaloneCodeEditor";
10
+ import { Disposable, type IDisposable, type IReference } from "vscode/vscode/vs/base/common/lifecycle";
11
+ import { EditorService } from "@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common/vscode/vs/workbench/services/editor/browser/editorService";
12
+ import { type IAuxiliaryEditorPart, type IEditorDropTargetDelegate, type IEditorPart, type IActiveEditorActions, type IEditorGroup, type IEditorWorkingSet, type IEditorGroupContextKeyProvider } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService";
13
+ import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
14
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
15
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
16
+ import { IWorkspaceTrustRequestService } from "vscode/vscode/vs/platform/workspace/common/workspaceTrust.service";
17
+ import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
18
+ import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
19
+ import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
20
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
21
+ import { ITextEditorService } from "vscode/vscode/vs/workbench/services/textfile/common/textEditorService.service";
22
+ import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
23
+ import { Emitter, Event } from "vscode/vscode/vs/base/common/event";
24
+ import { TextResourceEditorInput } from "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
25
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
26
+ import { URI } from "vscode/vscode/vs/base/common/uri";
27
+ import type { IGroupModelChangeEvent } from "@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common/vscode/vs/workbench/common/editor/editorGroupModel";
28
+ import type { EditorLayoutInfo } from "vscode/vscode/vs/editor/common/config/editorOptions";
29
+ import type { IRectangle } from "vscode/vscode/vs/platform/window/common/window";
30
+ import type { ContextKeyValue } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
31
+ import { unsupported } from "vscode/tools";
32
+ export type OpenEditor = (modelRef: IReference<IResolvedTextEditorModel>, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise<ICodeEditor | undefined>;
33
+ declare class EmptyEditorGroup implements IEditorGroup, IEditorGroupView {
34
+ selectedEditors: never[];
35
+ isSelected: () => boolean;
36
+ setSelection: typeof unsupported;
37
+ isTransient: () => boolean;
38
+ windowId: number;
39
+ get groupsView(): never;
40
+ notifyLabelChanged(): void;
41
+ createEditorActions: typeof unsupported;
42
+ onDidFocus: Event<any>;
43
+ onDidOpenEditorFail: Event<any>;
44
+ whenRestored: Promise<void>;
45
+ get titleHeight(): never;
46
+ disposed: boolean;
47
+ setActive: typeof unsupported;
48
+ notifyIndexChanged: typeof unsupported;
49
+ relayout: typeof unsupported;
50
+ dispose: typeof unsupported;
51
+ toJSON: typeof unsupported;
52
+ preferredWidth?: number | undefined;
53
+ preferredHeight?: number | undefined;
54
+ get element(): never;
55
+ minimumWidth: number;
56
+ maximumWidth: number;
57
+ minimumHeight: number;
58
+ maximumHeight: number;
59
+ onDidChange: Event<any>;
60
+ layout: typeof unsupported;
61
+ onDidModelChange: Event<any>;
62
+ onWillDispose: Event<any>;
63
+ onDidActiveEditorChange: Event<any>;
64
+ onWillCloseEditor: Event<any>;
65
+ onDidCloseEditor: Event<any>;
66
+ onWillMoveEditor: Event<any>;
67
+ onWillOpenEditor: Event<any>;
68
+ id: number;
69
+ index: number;
70
+ label: string;
71
+ ariaLabel: string;
72
+ activeEditorPane: undefined;
73
+ activeEditor: null;
74
+ previewEditor: null;
75
+ count: number;
76
+ isEmpty: boolean;
77
+ isLocked: boolean;
78
+ stickyCount: number;
79
+ editors: never[];
80
+ get scopedContextKeyService(): IContextKeyService;
81
+ getEditors: () => never[];
82
+ findEditors: () => never[];
83
+ getEditorByIndex: () => undefined;
84
+ getIndexOfEditor: typeof unsupported;
85
+ openEditor: typeof unsupported;
86
+ openEditors: typeof unsupported;
87
+ isPinned: () => boolean;
88
+ isSticky: () => boolean;
89
+ isActive: () => boolean;
90
+ contains: () => boolean;
91
+ moveEditor: typeof unsupported;
92
+ moveEditors: typeof unsupported;
93
+ copyEditor: typeof unsupported;
94
+ copyEditors: typeof unsupported;
95
+ closeEditor: typeof unsupported;
96
+ closeEditors: typeof unsupported;
97
+ closeAllEditors: typeof unsupported;
98
+ replaceEditors: typeof unsupported;
99
+ pinEditor: () => void;
100
+ stickEditor: () => void;
101
+ unstickEditor: () => void;
102
+ lock: () => void;
103
+ focus(): void;
104
+ isFirst: typeof unsupported;
105
+ isLast: typeof unsupported;
106
+ }
107
+ export declare const fakeActiveGroup: EmptyEditorGroup;
108
+ export declare function wrapOpenEditor(textModelService: ITextModelService, defaultBehavior: IEditorService["openEditor"], fallbackBahavior?: OpenEditor): IEditorService["openEditor"];
109
+ export declare class MonacoEditorService extends EditorService {
110
+ private _isEditorPartVisible;
111
+ 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);
112
+ get activeTextEditorControl(): ICodeEditor | IDiffEditor | undefined;
113
+ openEditor(editor: EditorInput, options?: IEditorOptions, group?: PreferredGroup): Promise<IEditorPane | undefined>;
114
+ openEditor(editor: IUntypedEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
115
+ openEditor(editor: IResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
116
+ openEditor(editor: ITextResourceEditorInput | IUntitledTextResourceEditorInput, group?: PreferredGroup): Promise<IEditorPane | undefined>;
117
+ openEditor(editor: IResourceDiffEditorInput, group?: PreferredGroup): Promise<ITextDiffEditorPane | undefined>;
118
+ openEditor(editor: EditorInput | IUntypedEditorInput, optionsOrPreferredGroup?: IEditorOptions | PreferredGroup, preferredGroup?: PreferredGroup): Promise<IEditorPane | undefined>;
119
+ }
120
+ declare class StandaloneEditorPane implements IVisibleEditorPane {
121
+ readonly editor: IStandaloneCodeEditor;
122
+ input: TextResourceEditorInput;
123
+ group: IEditorGroup;
124
+ constructor(editor: IStandaloneCodeEditor, input: TextResourceEditorInput, group: IEditorGroup);
125
+ onDidChangeControl: Event<any>;
126
+ options: undefined;
127
+ minimumWidth: number;
128
+ maximumWidth: number;
129
+ minimumHeight: number;
130
+ maximumHeight: number;
131
+ onDidChangeSizeConstraints: Event<any>;
132
+ scopedContextKeyService: undefined;
133
+ getControl(): IEditorControl | undefined;
134
+ getViewState(): object | undefined;
135
+ isVisible(): boolean;
136
+ onDidFocus: Event<void>;
137
+ onDidBlur: Event<void>;
138
+ hasFocus(): boolean;
139
+ getId(): string;
140
+ getTitle(): string | undefined;
141
+ focus(): void;
142
+ }
143
+ declare class StandaloneEditorGroup extends Disposable implements IEditorGroup, IEditorGroupView {
144
+ editor: IStandaloneCodeEditor;
145
+ scopedContextKeyService: IContextKeyService;
146
+ private static idCounter;
147
+ private pane;
148
+ active: boolean;
149
+ constructor(editor: IStandaloneCodeEditor, instantiationService: IInstantiationService, scopedContextKeyService: IContextKeyService);
150
+ selectedEditors: never[];
151
+ isSelected: () => boolean;
152
+ setSelection: typeof unsupported;
153
+ isTransient: () => boolean;
154
+ windowId: number;
155
+ get groupsView(): never;
156
+ notifyLabelChanged(): void;
157
+ createEditorActions(): IActiveEditorActions;
158
+ onDidFocus: Event<void>;
159
+ onDidOpenEditorFail: Event<any>;
160
+ whenRestored: Promise<void>;
161
+ get titleHeight(): never;
162
+ disposed: boolean;
163
+ setActive(isActive: boolean): void;
164
+ notifyIndexChanged: typeof unsupported;
165
+ relayout: typeof unsupported;
166
+ toJSON: typeof unsupported;
167
+ get element(): HTMLElement;
168
+ minimumWidth: number;
169
+ maximumWidth: number;
170
+ minimumHeight: number;
171
+ maximumHeight: number;
172
+ onDidChange: Event<EditorLayoutInfo>;
173
+ layout: () => void;
174
+ _onDidModelChange: Emitter<IGroupModelChangeEvent>;
175
+ onDidModelChange: Event<IGroupModelChangeEvent>;
176
+ onWillDispose: (listener: () => void) => IDisposable;
177
+ _onDidActiveEditorChange: Emitter<IActiveEditorChangeEvent>;
178
+ onDidActiveEditorChange: Event<IActiveEditorChangeEvent>;
179
+ onWillCloseEditor: Event<any>;
180
+ _onDidCloseEditor: Emitter<IEditorCloseEvent>;
181
+ onDidCloseEditor: Event<IEditorCloseEvent>;
182
+ onWillMoveEditor: Event<any>;
183
+ _onWillOpenEditor: Emitter<IEditorWillOpenEvent>;
184
+ onWillOpenEditor: Event<IEditorWillOpenEvent>;
185
+ readonly id: number;
186
+ index: number;
187
+ label: string;
188
+ ariaLabel: string;
189
+ get activeEditorPane(): StandaloneEditorPane | undefined;
190
+ get activeEditor(): TextResourceEditorInput | null;
191
+ previewEditor: null;
192
+ get count(): 1 | 0;
193
+ get isEmpty(): boolean;
194
+ isLocked: boolean;
195
+ stickyCount: number;
196
+ get editors(): TextResourceEditorInput[];
197
+ getEditors: () => TextResourceEditorInput[];
198
+ findEditors: (resource: URI) => TextResourceEditorInput[];
199
+ getEditorByIndex: (index: number) => TextResourceEditorInput | undefined;
200
+ getIndexOfEditor: (editorInput: EditorInput) => 0 | -1;
201
+ openEditor: (editor: EditorInput) => Promise<IEditorPane | undefined>;
202
+ openEditors: (editors: EditorInputWithOptions[]) => Promise<IEditorPane | undefined>;
203
+ isPinned: () => boolean;
204
+ isSticky: () => boolean;
205
+ isActive: () => boolean;
206
+ contains: (candidate: EditorInput | IUntypedEditorInput) => boolean;
207
+ moveEditor: typeof unsupported;
208
+ moveEditors: typeof unsupported;
209
+ copyEditor: typeof unsupported;
210
+ copyEditors: typeof unsupported;
211
+ closeEditor: typeof unsupported;
212
+ closeEditors: typeof unsupported;
213
+ closeAllEditors: typeof unsupported;
214
+ replaceEditors: typeof unsupported;
215
+ pinEditor: () => void;
216
+ stickEditor: () => void;
217
+ unstickEditor: () => void;
218
+ lock: () => void;
219
+ focus(): void;
220
+ isFirst: typeof unsupported;
221
+ isLast: typeof unsupported;
222
+ }
223
+ export declare class MonacoDelegateEditorGroupsService<D extends IEditorGroupsService> extends Disposable implements IEditorGroupsService {
224
+ protected delegate: D;
225
+ private instantiationService;
226
+ readonly _serviceBrand: undefined;
227
+ additionalGroups: StandaloneEditorGroup[];
228
+ activeGroupOverride: StandaloneEditorGroup | undefined;
229
+ constructor(delegate: D, emptyDelegate: boolean, instantiationService: IInstantiationService);
230
+ getScopedInstantiationService(): IInstantiationService;
231
+ registerContextKeyProvider<T extends ContextKeyValue>(provider: IEditorGroupContextKeyProvider<T>): IDisposable;
232
+ saveWorkingSet(name: string): IEditorWorkingSet;
233
+ getWorkingSets(): IEditorWorkingSet[];
234
+ applyWorkingSet(workingSet: IEditorWorkingSet | "empty"): Promise<boolean>;
235
+ deleteWorkingSet(workingSet: IEditorWorkingSet): void;
236
+ get isReady(): IEditorGroupsService["isReady"];
237
+ get whenReady(): IEditorGroupsService["whenReady"];
238
+ get whenRestored(): IEditorGroupsService["whenRestored"];
239
+ get hasRestorableState(): IEditorGroupsService["hasRestorableState"];
240
+ onDidCreateAuxiliaryEditorPart: Event<IAuxiliaryEditorPart>;
241
+ get parts(): IEditorGroupsService["parts"];
242
+ createAuxiliaryEditorPart(options?: {
243
+ bounds?: Partial<IRectangle> | undefined;
244
+ } | undefined): Promise<IAuxiliaryEditorPart>;
245
+ get mainPart(): IEditorGroupsService["mainPart"];
246
+ onDidChangeGroupMaximized: Event<boolean>;
247
+ getPart(group: number | IEditorGroup): IEditorPart;
248
+ getPart(container: unknown): IEditorPart | undefined;
249
+ toggleMaximizeGroup(group?: number | IEditorGroup | undefined): void;
250
+ toggleExpandGroup(group?: number | IEditorGroup | undefined): void;
251
+ createEditorDropTarget(container: unknown, delegate: IEditorDropTargetDelegate): IDisposable;
252
+ get groups(): IEditorGroup[];
253
+ get activeGroup(): IEditorGroup;
254
+ _onDidChangeActiveGroup: Emitter<IEditorGroup>;
255
+ onDidChangeActiveGroup: Event<IEditorGroup>;
256
+ _onDidAddGroup: Emitter<IEditorGroup>;
257
+ onDidAddGroup: Event<IEditorGroup>;
258
+ _onDidRemoveGroup: Emitter<IEditorGroup>;
259
+ onDidRemoveGroup: Event<IEditorGroup>;
260
+ onDidMoveGroup: Event<IEditorGroup>;
261
+ onDidActivateGroup: Event<IEditorGroup>;
262
+ onDidChangeGroupIndex: Event<IEditorGroup>;
263
+ onDidChangeGroupLocked: Event<IEditorGroup>;
264
+ get sideGroup(): IEditorGroupsService["sideGroup"];
265
+ get count(): IEditorGroupsService["count"];
266
+ get orientation(): IEditorGroupsService["orientation"];
267
+ get partOptions(): IEditorGroupsService["partOptions"];
268
+ getLayout: IEditorGroupsService["getLayout"];
269
+ getGroups: IEditorGroupsService["getGroups"];
270
+ getGroup: IEditorGroupsService["getGroup"];
271
+ activateGroup: IEditorGroupsService["activateGroup"];
272
+ getSize: IEditorGroupsService["getSize"];
273
+ setSize: IEditorGroupsService["setSize"];
274
+ arrangeGroups: IEditorGroupsService["arrangeGroups"];
275
+ applyLayout: IEditorGroupsService["applyLayout"];
276
+ setGroupOrientation: IEditorGroupsService["setGroupOrientation"];
277
+ findGroup: IEditorGroupsService["findGroup"];
278
+ addGroup: IEditorGroupsService["addGroup"];
279
+ removeGroup: IEditorGroupsService["removeGroup"];
280
+ moveGroup: IEditorGroupsService["moveGroup"];
281
+ mergeGroup: IEditorGroupsService["mergeGroup"];
282
+ mergeAllGroups: IEditorGroupsService["mergeAllGroups"];
283
+ copyGroup: IEditorGroupsService["copyGroup"];
284
+ onDidChangeEditorPartOptions: Event<import("vscode/vscode/vs/workbench/common/editor").IEditorPartOptionsChangeEvent>;
285
+ }
286
+ export {};