@codingame/monaco-vscode-views-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 +34 -2
- package/index.js +569 -12
- package/package.json +42 -11
- package/service-override/tools/editor.d.ts +286 -0
- package/service-override/tools/views.d.ts +105 -0
- package/tools/editor.js +0 -662
- package/tools/views.js +0 -306
- package/tools.js +0 -44
- package/views.js +0 -566
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-views-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - views service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,39 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": "12.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "12.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-0ccdeafc-77d6-5aa8-b465-b7d03b8fb10f-common": "12.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "12.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-cc2b8dc7-d125-518e-bf7e-99a1db5babd1-common": "12.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "12.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-d8236b3b-b91a-522d-89f4-94d70a546f6a-common": "12.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-e97d19fd-ad95-5915-8104-6f1a86c7b652-common": "12.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-keybindings-service-override": "12.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-layout-service-override": "12.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "12.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-view-common-service-override": "12.0.0",
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common": "12.0.0",
|
|
36
|
+
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "12.0.0",
|
|
37
|
+
"@codingame/monaco-vscode-workbench-service-override": "12.0.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": {
|
|
44
|
+
"optional": true
|
|
45
|
+
},
|
|
46
|
+
"@codingame/monaco-vscode-workbench-service-override": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
17
50
|
"main": "index.js",
|
|
18
51
|
"module": "index.js",
|
|
19
52
|
"types": "index.d.ts",
|
|
@@ -22,14 +55,12 @@
|
|
|
22
55
|
"default": "./index.js"
|
|
23
56
|
},
|
|
24
57
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
58
|
+
"default": "./vscode/src/*.js",
|
|
59
|
+
"types": "./vscode/src/*.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./*": {
|
|
62
|
+
"default": "./*.js",
|
|
63
|
+
"types": "./*.d.ts"
|
|
26
64
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
|
|
30
|
-
"@codingame/monaco-vscode-view-common-views-workbench-common": "11.1.2",
|
|
31
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "11.1.2",
|
|
32
|
-
"@codingame/monaco-vscode-keybindings-service-override": "11.1.2",
|
|
33
|
-
"@codingame/monaco-vscode-view-common-service-override": "11.1.2"
|
|
34
65
|
}
|
|
35
66
|
}
|
|
@@ -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 {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type IViewContainerDescriptor, type IViewContainersRegistry, type IViewDescriptor, type IViewsRegistry, type ViewContainer, ViewContainerLocation } from "vscode/vscode/vs/workbench/common/views";
|
|
2
|
+
import type { BrandedService, ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { type IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { Dimension } from "vscode/vscode/vs/base/browser/dom";
|
|
5
|
+
import { ViewPaneContainer } from "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer";
|
|
6
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
7
|
+
import { Codicon } from "vscode/vscode/vs/base/common/codicons";
|
|
8
|
+
import { type EditorInputFactoryObject, type RegisteredEditorInfo, type RegisteredEditorOptions, RegisteredEditorPriority } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService";
|
|
9
|
+
import { EditorInput, type IEditorCloseHandler } from "vscode/vscode/vs/workbench/common/editor/editorInput";
|
|
10
|
+
import { EditorInputCapabilities, type IEditorOpenContext, type IEditorSerializer, Verbosity } from "vscode/vscode/vs/workbench/common/editor";
|
|
11
|
+
import type { IEditorOptions, IResourceEditorInput } from "vscode/vscode/vs/platform/editor/common/editor";
|
|
12
|
+
import { EditorPane } from "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
13
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
14
|
+
import { DomScrollableElement } from "vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement";
|
|
15
|
+
import { ConfirmResult } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
16
|
+
import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/resourceEditorInput";
|
|
17
|
+
import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
|
|
18
|
+
import { Parts, Position } from "@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common/vscode/vs/workbench/services/layout/browser/layoutService";
|
|
19
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
20
|
+
import { type IView, SplitView } from "vscode/vscode/vs/base/browser/ui/splitview/splitview";
|
|
21
|
+
import { type IEditorGroup } from "vscode/services";
|
|
22
|
+
type Label = string | {
|
|
23
|
+
short: string;
|
|
24
|
+
medium: string;
|
|
25
|
+
long: string;
|
|
26
|
+
};
|
|
27
|
+
declare abstract class InjectedEditorPane extends EditorPane {
|
|
28
|
+
constructor(id: string, group: IEditorGroup);
|
|
29
|
+
}
|
|
30
|
+
declare abstract class SimpleEditorPane extends InjectedEditorPane {
|
|
31
|
+
protected container: HTMLElement;
|
|
32
|
+
protected wrapper: HTMLElement;
|
|
33
|
+
protected scrollbar: DomScrollableElement | undefined;
|
|
34
|
+
private inputDisposable;
|
|
35
|
+
protected createEditor(parent: HTMLElement): void;
|
|
36
|
+
setInput(input: EditorInput, editorOptions: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
37
|
+
layout(dimension: Dimension): void;
|
|
38
|
+
focus(): void;
|
|
39
|
+
clearInput(): void;
|
|
40
|
+
abstract initialize(): HTMLElement;
|
|
41
|
+
abstract renderInput?(input: EditorInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<IDisposable>;
|
|
42
|
+
}
|
|
43
|
+
declare abstract class SimpleEditorInput extends EditorInput {
|
|
44
|
+
closeHandler?: IEditorCloseHandler | undefined;
|
|
45
|
+
private dirty;
|
|
46
|
+
private _capabilities;
|
|
47
|
+
private name;
|
|
48
|
+
private title;
|
|
49
|
+
private description;
|
|
50
|
+
resource: URI | undefined;
|
|
51
|
+
constructor(resource?: URI, closeHandler?: IEditorCloseHandler | undefined);
|
|
52
|
+
get capabilities(): EditorInputCapabilities;
|
|
53
|
+
addCapability(capability: EditorInputCapabilities): void;
|
|
54
|
+
removeCapability(capability: EditorInputCapabilities): void;
|
|
55
|
+
get editorId(): string | undefined;
|
|
56
|
+
setName(name: string): void;
|
|
57
|
+
setTitle(title: Label): void;
|
|
58
|
+
setDescription(description: string): void;
|
|
59
|
+
private getLabelValue;
|
|
60
|
+
getName(): string;
|
|
61
|
+
getTitle(verbosity?: Verbosity): string;
|
|
62
|
+
getDescription(verbosity?: Verbosity): string;
|
|
63
|
+
isDirty(): boolean;
|
|
64
|
+
setDirty(dirty: boolean): void;
|
|
65
|
+
toUntyped(): IResourceEditorInput | undefined;
|
|
66
|
+
}
|
|
67
|
+
declare function registerEditorPane<Services extends BrandedService[]>(typeId: string, name: string, ctor: new (group: IEditorGroup, ...services: Services) => EditorPane, inputCtors: (new (...args: any[]) => EditorInput)[]): IDisposable;
|
|
68
|
+
declare function registerEditor(globPattern: string, editorInfo: RegisteredEditorInfo, editorOptions: RegisteredEditorOptions, factory: EditorInputFactoryObject): IDisposable;
|
|
69
|
+
declare function registerEditorSerializer<Services extends BrandedService[]>(editorTypeId: string, ctor: {
|
|
70
|
+
new (...Services: Services): IEditorSerializer;
|
|
71
|
+
}): IDisposable;
|
|
72
|
+
interface CustomViewOption {
|
|
73
|
+
readonly id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
order?: number;
|
|
76
|
+
renderBody(container: HTMLElement, scrollbar: DomScrollableElement): IDisposable;
|
|
77
|
+
location: ViewContainerLocation;
|
|
78
|
+
icon?: string;
|
|
79
|
+
canMoveView?: boolean;
|
|
80
|
+
default?: boolean;
|
|
81
|
+
actions?: {
|
|
82
|
+
id: string;
|
|
83
|
+
title: string;
|
|
84
|
+
tooltip?: string;
|
|
85
|
+
order?: number;
|
|
86
|
+
run?(accessor: ServicesAccessor): Promise<void>;
|
|
87
|
+
icon?: keyof typeof Codicon;
|
|
88
|
+
render?(container: HTMLElement): void;
|
|
89
|
+
}[];
|
|
90
|
+
viewContainer?: ViewContainer;
|
|
91
|
+
canToggleVisibility?: boolean;
|
|
92
|
+
hideByDefault?: boolean;
|
|
93
|
+
collapsed?: boolean;
|
|
94
|
+
}
|
|
95
|
+
declare const viewContainerRegistry: IViewContainersRegistry;
|
|
96
|
+
declare const viewRegistry: IViewsRegistry;
|
|
97
|
+
declare function registerCustomView(options: CustomViewOption): IDisposable;
|
|
98
|
+
export declare function isPartVisibile(part: Parts): boolean;
|
|
99
|
+
export declare function setPartVisibility(part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>, visible: boolean): void;
|
|
100
|
+
export declare const onDidChangePanelPosition: Event<string>;
|
|
101
|
+
export declare function getPanelPosition(): Position;
|
|
102
|
+
export declare const onDidChangeSideBarPosition: Event<string>;
|
|
103
|
+
export declare function getSideBarPosition(): Position;
|
|
104
|
+
export { ViewContainerLocation, registerCustomView, ViewPaneContainer, ConfirmResult, registerEditorPane, RegisteredEditorPriority, InjectedEditorPane as EditorPane, SimpleEditorPane, SimpleEditorInput, AbstractResourceEditorInput, AbstractTextResourceEditorInput, EditorInput, registerEditor, registerEditorSerializer, EditorInputCapabilities, Parts, SplitView, viewRegistry, viewContainerRegistry, DomScrollableElement };
|
|
105
|
+
export type { IEditorSerializer, CustomViewOption, IEditorCloseHandler, RegisteredEditorInfo, RegisteredEditorOptions, EditorInputFactoryObject, IView, IViewContainerDescriptor, ViewContainer, IViewDescriptor };
|