@codingame/monaco-vscode-api 1.79.12 → 1.79.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.79.12",
3
+ "version": "1.79.13",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
package/dist/views.d.ts DELETED
@@ -1,270 +0,0 @@
1
- import { S as ServiceIdentifier, b as SyncDescriptor } from './instantiation.js';
2
- import { U as URI } from './uri.js';
3
- import { E as Event } from './event.js';
4
- import { T as ThemeIcon } from './themables.js';
5
- import { C as ContextKeyExpression } from './contextkey.js';
6
- import { c as ILocalizedString, E as ExtensionIdentifier } from './extensions.d2.ts';
7
- import { j as IComposite, k as IProgressIndicator } from './editorBrowser.js';
8
-
9
- interface IKeybindings {
10
- primary?: number;
11
- secondary?: number[];
12
- win?: {
13
- primary: number;
14
- secondary?: number[];
15
- };
16
- linux?: {
17
- primary: number;
18
- secondary?: number[];
19
- };
20
- mac?: {
21
- primary: number;
22
- secondary?: number[];
23
- };
24
- }
25
-
26
- interface IPaneComposite extends IComposite {
27
- /**
28
- * Returns the minimal width needed to avoid any content horizontal truncation
29
- */
30
- getOptimalWidth(): number | undefined;
31
- openView<T extends IView>(id: string, focus?: boolean): T | undefined;
32
- getViewPaneContainer(): IViewPaneContainer | undefined;
33
- }
34
-
35
- declare const enum ViewContainerLocation {
36
- Sidebar = 0,
37
- Panel = 1,
38
- AuxiliaryBar = 2
39
- }
40
- type OpenCommandActionDescriptor = {
41
- readonly id: string;
42
- readonly title?: ILocalizedString | string;
43
- readonly mnemonicTitle?: string;
44
- readonly order?: number;
45
- readonly keybindings?: IKeybindings & {
46
- when?: ContextKeyExpression;
47
- };
48
- };
49
- /**
50
- * View Container Contexts
51
- */
52
- interface IViewContainerDescriptor {
53
- /**
54
- * The id of the view container
55
- */
56
- readonly id: string;
57
- /**
58
- * The title of the view container
59
- */
60
- readonly title: ILocalizedString | string;
61
- /**
62
- * Icon representation of the View container
63
- */
64
- readonly icon?: ThemeIcon | URI;
65
- /**
66
- * Order of the view container.
67
- */
68
- readonly order?: number;
69
- /**
70
- * IViewPaneContainer Ctor to instantiate
71
- */
72
- readonly ctorDescriptor: SyncDescriptor<IViewPaneContainer>;
73
- /**
74
- * Descriptor for open view container command
75
- * If not provided, view container info (id, title) is used.
76
- *
77
- * Note: To prevent registering open command, use `doNotRegisterOpenCommand` flag while registering the view container
78
- */
79
- readonly openCommandActionDescriptor?: OpenCommandActionDescriptor;
80
- /**
81
- * Storage id to use to store the view container state.
82
- * If not provided, it will be derived.
83
- */
84
- readonly storageId?: string;
85
- /**
86
- * If enabled, view container is not shown if it has no active views.
87
- */
88
- readonly hideIfEmpty?: boolean;
89
- /**
90
- * Id of the extension that contributed the view container
91
- */
92
- readonly extensionId?: ExtensionIdentifier;
93
- readonly alwaysUseContainerInfo?: boolean;
94
- readonly viewOrderDelegate?: ViewOrderDelegate;
95
- readonly rejectAddedViews?: boolean;
96
- requestedIndex?: number;
97
- }
98
- interface ViewOrderDelegate {
99
- getOrder(group?: string): number | undefined;
100
- }
101
- interface ViewContainer extends IViewContainerDescriptor {
102
- }
103
- interface IViewDescriptor {
104
- readonly type?: string;
105
- readonly id: string;
106
- readonly name: string;
107
- readonly ctorDescriptor: SyncDescriptor<IView>;
108
- readonly when?: ContextKeyExpression;
109
- readonly order?: number;
110
- readonly weight?: number;
111
- readonly collapsed?: boolean;
112
- readonly canToggleVisibility?: boolean;
113
- readonly canMoveView?: boolean;
114
- readonly containerIcon?: ThemeIcon | URI;
115
- readonly containerTitle?: string;
116
- readonly hideByDefault?: boolean;
117
- readonly workspace?: boolean;
118
- readonly focusCommand?: {
119
- id: string;
120
- keybindings?: IKeybindings;
121
- };
122
- readonly group?: string;
123
- readonly remoteAuthority?: string | string[];
124
- readonly virtualWorkspace?: string;
125
- readonly openCommandActionDescriptor?: OpenCommandActionDescriptor;
126
- }
127
- interface IViewDescriptorRef {
128
- viewDescriptor: IViewDescriptor;
129
- index: number;
130
- }
131
- interface IAddedViewDescriptorRef extends IViewDescriptorRef {
132
- collapsed: boolean;
133
- size?: number;
134
- }
135
- interface IViewContainerModel {
136
- readonly viewContainer: ViewContainer;
137
- readonly title: string;
138
- readonly icon: ThemeIcon | URI | undefined;
139
- readonly keybindingId: string | undefined;
140
- readonly onDidChangeContainerInfo: Event<{
141
- title?: boolean;
142
- icon?: boolean;
143
- keybindingId?: boolean;
144
- badgeEnablement?: boolean;
145
- }>;
146
- readonly allViewDescriptors: ReadonlyArray<IViewDescriptor>;
147
- readonly onDidChangeAllViewDescriptors: Event<{
148
- added: ReadonlyArray<IViewDescriptor>;
149
- removed: ReadonlyArray<IViewDescriptor>;
150
- }>;
151
- readonly activeViewDescriptors: ReadonlyArray<IViewDescriptor>;
152
- readonly onDidChangeActiveViewDescriptors: Event<{
153
- added: ReadonlyArray<IViewDescriptor>;
154
- removed: ReadonlyArray<IViewDescriptor>;
155
- }>;
156
- readonly visibleViewDescriptors: ReadonlyArray<IViewDescriptor>;
157
- readonly onDidAddVisibleViewDescriptors: Event<IAddedViewDescriptorRef[]>;
158
- readonly onDidRemoveVisibleViewDescriptors: Event<IViewDescriptorRef[]>;
159
- readonly onDidMoveVisibleViewDescriptors: Event<{
160
- from: IViewDescriptorRef;
161
- to: IViewDescriptorRef;
162
- }>;
163
- isVisible(id: string): boolean;
164
- setVisible(id: string, visible: boolean): void;
165
- isCollapsed(id: string): boolean;
166
- setCollapsed(id: string, collapsed: boolean): void;
167
- getSize(id: string): number | undefined;
168
- setSizes(newSizes: readonly {
169
- id: string;
170
- size: number;
171
- }[]): void;
172
- move(from: string, to: string): void;
173
- }
174
- interface IView {
175
- readonly id: string;
176
- focus(): void;
177
- isVisible(): boolean;
178
- isBodyVisible(): boolean;
179
- setExpanded(expanded: boolean): boolean;
180
- getProgressIndicator(): IProgressIndicator | undefined;
181
- }
182
- declare const IViewsService: ServiceIdentifier<IViewsService>;
183
- interface IViewsService {
184
- readonly _serviceBrand: undefined;
185
- readonly onDidChangeViewContainerVisibility: Event<{
186
- id: string;
187
- visible: boolean;
188
- location: ViewContainerLocation;
189
- }>;
190
- isViewContainerVisible(id: string): boolean;
191
- openViewContainer(id: string, focus?: boolean): Promise<IPaneComposite | null>;
192
- closeViewContainer(id: string): void;
193
- getVisibleViewContainer(location: ViewContainerLocation): ViewContainer | null;
194
- getActiveViewPaneContainerWithId(viewContainerId: string): IViewPaneContainer | null;
195
- readonly onDidChangeViewVisibility: Event<{
196
- id: string;
197
- visible: boolean;
198
- }>;
199
- isViewVisible(id: string): boolean;
200
- openView<T extends IView>(id: string, focus?: boolean): Promise<T | null>;
201
- closeView(id: string): void;
202
- getActiveViewWithId<T extends IView>(id: string): T | null;
203
- getViewWithId<T extends IView>(id: string): T | null;
204
- getViewProgressIndicator(id: string): IProgressIndicator | undefined;
205
- }
206
- declare enum ViewVisibilityState {
207
- Default = 0,
208
- Expand = 1
209
- }
210
- declare const IViewDescriptorService: ServiceIdentifier<IViewDescriptorService>;
211
- interface IViewDescriptorService {
212
- readonly _serviceBrand: undefined;
213
- readonly viewContainers: ReadonlyArray<ViewContainer>;
214
- readonly onDidChangeViewContainers: Event<{
215
- added: ReadonlyArray<{
216
- container: ViewContainer;
217
- location: ViewContainerLocation;
218
- }>;
219
- removed: ReadonlyArray<{
220
- container: ViewContainer;
221
- location: ViewContainerLocation;
222
- }>;
223
- }>;
224
- getDefaultViewContainer(location: ViewContainerLocation): ViewContainer | undefined;
225
- getViewContainerById(id: string): ViewContainer | null;
226
- isViewContainerRemovedPermanently(id: string): boolean;
227
- getDefaultViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
228
- getViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
229
- getViewContainersByLocation(location: ViewContainerLocation): ViewContainer[];
230
- getViewContainerModel(viewContainer: ViewContainer): IViewContainerModel;
231
- readonly onDidChangeContainerLocation: Event<{
232
- viewContainer: ViewContainer;
233
- from: ViewContainerLocation;
234
- to: ViewContainerLocation;
235
- }>;
236
- moveViewContainerToLocation(viewContainer: ViewContainer, location: ViewContainerLocation, requestedIndex?: number): void;
237
- getViewContainerBadgeEnablementState(id: string): boolean;
238
- setViewContainerBadgeEnablementState(id: string, badgesEnabled: boolean): void;
239
- getViewDescriptorById(id: string): IViewDescriptor | null;
240
- getViewContainerByViewId(id: string): ViewContainer | null;
241
- getDefaultContainerById(id: string): ViewContainer | null;
242
- getViewLocationById(id: string): ViewContainerLocation | null;
243
- readonly onDidChangeContainer: Event<{
244
- views: IViewDescriptor[];
245
- from: ViewContainer;
246
- to: ViewContainer;
247
- }>;
248
- moveViewsToContainer(views: IViewDescriptor[], viewContainer: ViewContainer, visibilityState?: ViewVisibilityState): void;
249
- readonly onDidChangeLocation: Event<{
250
- views: IViewDescriptor[];
251
- from: ViewContainerLocation;
252
- to: ViewContainerLocation;
253
- }>;
254
- moveViewToLocation(view: IViewDescriptor, location: ViewContainerLocation): void;
255
- reset(): void;
256
- }
257
- interface IViewPaneContainer {
258
- onDidAddViews: Event<IView[]>;
259
- onDidRemoveViews: Event<IView[]>;
260
- onDidChangeViewVisibility: Event<IView>;
261
- readonly views: IView[];
262
- setVisible(visible: boolean): void;
263
- isVisible(): boolean;
264
- focus(): void;
265
- getActionsContext(): unknown;
266
- getView(viewId: string): IView | undefined;
267
- toggleViewVisibility(viewId: string): void;
268
- }
269
-
270
- export { IView as I, ViewContainerLocation as V, IViewDescriptorService as a, IViewPaneContainer as b, ViewContainer as c, IViewContainerModel as d, IViewDescriptor as e, IAddedViewDescriptorRef as f, IPaneComposite as g, IViewsService as h };