@codingame/monaco-vscode-api 1.79.11 → 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/dist/colorRegistry.d.ts +2043 -0
- package/dist/contextkey.d.ts +1 -1
- package/dist/editor.d.ts +1182 -3
- package/dist/editorBrowser.d.ts +35 -1
- package/dist/event.d.ts +1 -1
- package/dist/extensions.d2.ts +1 -1
- package/dist/extensionsRegistry.d.ts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/hover.d.ts +3106 -0
- package/dist/keybinding.d.ts +1 -1
- package/dist/languageFeatures.d.ts +432 -3558
- package/dist/monaco.d.ts +7 -7
- package/dist/service-override/editor.d.ts +1 -0
- package/dist/service-override/views.d.ts +562 -6
- package/dist/service-override/views.js +1 -1
- package/dist/services.d.ts +402 -2467
- package/dist/services.js +8 -1
- package/monaco-editor-treemending.patch +531 -531
- package/package.json +1 -1
- package/dist/progress.d.ts +0 -27
- package/dist/views.d.ts +0 -271
package/dist/monaco.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import { I as IEditorOverrideServices } from './standaloneServices.js';
|
|
3
3
|
import { E as Event, D as Disposable, a as IDisposable, I as IReference } from './event.js';
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export { C as CommandsRegistry, r as registerColor } from './
|
|
4
|
+
export { b as DisposableStore } from './event.js';
|
|
5
|
+
import { j as ITextModel, o as IModelDecorationOptions, p as IModelDecorationsChangeAccessor, q as IEditorContribution, b as ICodeEditor, l as IPosition } from './editorBrowser.js';
|
|
6
|
+
import { F as FoldingRangeProvider, I as INotificationService } from './colorRegistry.js';
|
|
7
|
+
export { C as CommandsRegistry, r as registerColor } from './colorRegistry.js';
|
|
8
|
+
import { L as LanguageFeatureRegistry, I as ILanguageFeaturesService, a as ILanguageConfigurationService } from './languageFeatures.js';
|
|
8
9
|
import { a as IContextKeyService } from './contextkey.js';
|
|
9
10
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
10
11
|
import { I as IJSONSchema } from './jsonSchema.js';
|
|
11
12
|
import { U as URI } from './uri.js';
|
|
12
13
|
import { f as IFileDeleteOptions } from './files.js';
|
|
14
|
+
import { q as ITextFileEditorModel } from './editor.js';
|
|
13
15
|
import 'vscode';
|
|
14
16
|
import './themables.js';
|
|
15
|
-
import './severity.js';
|
|
16
|
-
import './editor.js';
|
|
17
|
-
import './progress.js';
|
|
18
17
|
import './extensions.d2.ts';
|
|
18
|
+
import './severity.js';
|
|
19
19
|
|
|
20
20
|
interface ErrorListenerCallback {
|
|
21
21
|
(error: any): void;
|
|
@@ -1,17 +1,522 @@
|
|
|
1
|
-
import { a as ServicesAccessor } from '../instantiation.js';
|
|
2
|
-
import { a as IDisposable } from '../event.js';
|
|
1
|
+
import { I as IInstantiationService, a as ServicesAccessor } from '../instantiation.js';
|
|
2
|
+
import { D as Disposable, E as Event, c as Emitter, a as IDisposable } from '../event.js';
|
|
3
3
|
export { I as IReference } from '../event.js';
|
|
4
4
|
import { I as IEditorOverrideServices } from '../standaloneServices.js';
|
|
5
|
-
import { V as ViewContainerLocation } from '../
|
|
5
|
+
import { A as ActionBar, I as IContextMenuProvider, a as ActionsOrientation, b as IActionViewItemProvider, c as AnchorAlignment, d as IMenuService, e as IContextMenuService, f as ITelemetryService, M as MenuId, g as IMenuActionOptions, C as Composite, P as Part, h as IStorageService, i as CompositeRegistry, j as IWorkbenchLayoutService, k as IThemeService, l as IPartOptions, m as IActionViewItem, n as IView, o as IPaneComposite, p as PaneCompositeDescriptor, q as IBadge, r as PaneComposite, L as LayoutPriority, s as IViewDescriptorService, t as IActivityService, u as IPaneCompositePartService, v as IActivity, w as IConfigurationService, x as IWorkbenchEnvironmentService, y as IHoverService, z as IContextViewService, B as IHoverOptions, D as IHoverWidget, H as HoverPosition, E as Dimension, F as Parts, V as ViewContainerLocation, G as IStatusbarService, J as IStatusbarEntry, S as StatusbarAlignment, K as IStatusbarEntryLocation, N as IStatusbarEntryPriority, O as IStatusbarEntryAccessor, Q as IStatusbarStyleOverride } from '../hover.js';
|
|
6
|
+
import { a as IContextKeyService, b as IContextKey } from '../contextkey.js';
|
|
7
|
+
import { z as IActionRunner, A as IAction, I as INotificationService, B as ICommandService } from '../colorRegistry.js';
|
|
8
|
+
import { s as IComposite, t as IProgressIndicator, u as IBoundarySashes } from '../editorBrowser.js';
|
|
6
9
|
export { d as IEditorOptions, h as IResolvedTextEditorModel } from '../editorBrowser.js';
|
|
10
|
+
import { R as ResolvedKeybinding, a as IKeybindingService } from '../keybinding.js';
|
|
7
11
|
import { T as ThemeIcon } from '../themables.js';
|
|
12
|
+
import { a as IExtensionService } from '../extensionsRegistry.js';
|
|
13
|
+
import { c as IWorkspaceContextService } from '../workspace.js';
|
|
8
14
|
import { O as OpenEditor } from '../editor.d2.ts';
|
|
9
15
|
import 'vscode';
|
|
10
16
|
import 'monaco-editor';
|
|
11
17
|
import '../uri.js';
|
|
12
|
-
import '../
|
|
18
|
+
import '../files.js';
|
|
13
19
|
import '../extensions.d2.ts';
|
|
14
|
-
import '../
|
|
20
|
+
import '../jsonSchema.js';
|
|
21
|
+
import '../severity.js';
|
|
22
|
+
|
|
23
|
+
interface IToolBarOptions {
|
|
24
|
+
orientation?: ActionsOrientation;
|
|
25
|
+
actionViewItemProvider?: IActionViewItemProvider;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
getKeyBinding?: (action: IAction) => ResolvedKeybinding | undefined;
|
|
28
|
+
actionRunner?: IActionRunner;
|
|
29
|
+
toggleMenuTitle?: string;
|
|
30
|
+
anchorAlignmentProvider?: () => AnchorAlignment;
|
|
31
|
+
renderDropdownAsChildElement?: boolean;
|
|
32
|
+
moreIcon?: ThemeIcon;
|
|
33
|
+
allowContextMenu?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A widget that combines an action bar for primary actions and a dropdown for secondary actions.
|
|
37
|
+
*/
|
|
38
|
+
declare class ToolBar extends Disposable {
|
|
39
|
+
private options;
|
|
40
|
+
protected readonly actionBar: ActionBar;
|
|
41
|
+
private toggleMenuAction;
|
|
42
|
+
private toggleMenuActionViewItem;
|
|
43
|
+
private submenuActionViewItems;
|
|
44
|
+
private hasSecondaryActions;
|
|
45
|
+
private readonly lookupKeybindings;
|
|
46
|
+
private readonly element;
|
|
47
|
+
private _onDidChangeDropdownVisibility;
|
|
48
|
+
readonly onDidChangeDropdownVisibility: Event<boolean>;
|
|
49
|
+
private disposables;
|
|
50
|
+
constructor(container: HTMLElement, contextMenuProvider: IContextMenuProvider, options?: IToolBarOptions);
|
|
51
|
+
set actionRunner(actionRunner: IActionRunner);
|
|
52
|
+
get actionRunner(): IActionRunner;
|
|
53
|
+
set context(context: unknown);
|
|
54
|
+
getElement(): HTMLElement;
|
|
55
|
+
focus(): void;
|
|
56
|
+
getItemsWidth(): number;
|
|
57
|
+
getItemAction(indexOrElement: number | HTMLElement): IAction | undefined;
|
|
58
|
+
getItemWidth(index: number): number;
|
|
59
|
+
getItemsLength(): number;
|
|
60
|
+
setAriaLabel(label: string): void;
|
|
61
|
+
setActions(primaryActions: ReadonlyArray<IAction>, secondaryActions?: ReadonlyArray<IAction>): void;
|
|
62
|
+
isEmpty(): boolean;
|
|
63
|
+
private getKeybindingLabel;
|
|
64
|
+
private clear;
|
|
65
|
+
dispose(): void;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const enum HiddenItemStrategy {
|
|
69
|
+
/** This toolbar doesn't support hiding*/
|
|
70
|
+
NoHide = -1,
|
|
71
|
+
/** Hidden items aren't shown anywhere */
|
|
72
|
+
Ignore = 0,
|
|
73
|
+
/** Hidden items move into the secondary group */
|
|
74
|
+
RenderInSecondaryGroup = 1
|
|
75
|
+
}
|
|
76
|
+
type IWorkbenchToolBarOptions = IToolBarOptions & {
|
|
77
|
+
/**
|
|
78
|
+
* Items of the primary group can be hidden. When this happens the item can
|
|
79
|
+
* - move into the secondary popup-menu, or
|
|
80
|
+
* - not be shown at all
|
|
81
|
+
*/
|
|
82
|
+
hiddenItemStrategy?: HiddenItemStrategy;
|
|
83
|
+
/**
|
|
84
|
+
* Optional menu id which is used for a "Reset Menu" command. This should be the
|
|
85
|
+
* menu id that defines the contents of this workbench menu
|
|
86
|
+
*/
|
|
87
|
+
resetMenu?: MenuId;
|
|
88
|
+
/**
|
|
89
|
+
* Optional menu id which items are used for the context menu of the toolbar.
|
|
90
|
+
*/
|
|
91
|
+
contextMenu?: MenuId;
|
|
92
|
+
/**
|
|
93
|
+
* Optional options how menu actions are created and invoked
|
|
94
|
+
*/
|
|
95
|
+
menuOptions?: IMenuActionOptions;
|
|
96
|
+
/**
|
|
97
|
+
* When set the `workbenchActionExecuted` is automatically send for each invoked action. The `from` property
|
|
98
|
+
* of the event will the passed `telemetrySource`-value
|
|
99
|
+
*/
|
|
100
|
+
telemetrySource?: string;
|
|
101
|
+
/** This is controlled by the WorkbenchToolBar */
|
|
102
|
+
allowContextMenu?: never;
|
|
103
|
+
/**
|
|
104
|
+
* Maximun number of items that can shown. Extra items will be shown in the overflow menu.
|
|
105
|
+
*/
|
|
106
|
+
maxNumberOfItems?: number;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The `WorkbenchToolBar` does
|
|
110
|
+
* - support hiding of menu items
|
|
111
|
+
* - lookup keybindings for each actions automatically
|
|
112
|
+
* - send `workbenchActionExecuted`-events for each action
|
|
113
|
+
*
|
|
114
|
+
* See {@link MenuWorkbenchToolBar} for a toolbar that is backed by a menu.
|
|
115
|
+
*/
|
|
116
|
+
declare class WorkbenchToolBar extends ToolBar {
|
|
117
|
+
private _options;
|
|
118
|
+
private readonly _menuService;
|
|
119
|
+
private readonly _contextKeyService;
|
|
120
|
+
private readonly _contextMenuService;
|
|
121
|
+
private readonly _sessionDisposables;
|
|
122
|
+
constructor(container: HTMLElement, _options: IWorkbenchToolBarOptions | undefined, _menuService: IMenuService, _contextKeyService: IContextKeyService, _contextMenuService: IContextMenuService, keybindingService: IKeybindingService, telemetryService: ITelemetryService);
|
|
123
|
+
setActions(_primary: readonly IAction[], _secondary?: readonly IAction[], menuIds?: readonly MenuId[]): void;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface ICompositeTitleLabel {
|
|
127
|
+
/**
|
|
128
|
+
* Asks to update the title for the composite with the given ID.
|
|
129
|
+
*/
|
|
130
|
+
updateTitle(id: string, title: string, keybinding?: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* Called when theming information changes.
|
|
133
|
+
*/
|
|
134
|
+
updateStyles(): void;
|
|
135
|
+
}
|
|
136
|
+
declare abstract class CompositePart<T extends Composite> extends Part {
|
|
137
|
+
private readonly notificationService;
|
|
138
|
+
protected readonly storageService: IStorageService;
|
|
139
|
+
private readonly telemetryService;
|
|
140
|
+
protected readonly contextMenuService: IContextMenuService;
|
|
141
|
+
protected readonly keybindingService: IKeybindingService;
|
|
142
|
+
protected readonly instantiationService: IInstantiationService;
|
|
143
|
+
protected readonly registry: CompositeRegistry<T>;
|
|
144
|
+
private readonly activeCompositeSettingsKey;
|
|
145
|
+
private readonly defaultCompositeId;
|
|
146
|
+
private readonly nameForTelemetry;
|
|
147
|
+
private readonly compositeCSSClass;
|
|
148
|
+
private readonly titleForegroundColor;
|
|
149
|
+
protected readonly onDidCompositeOpen: Emitter<{
|
|
150
|
+
composite: IComposite;
|
|
151
|
+
focus: boolean;
|
|
152
|
+
}>;
|
|
153
|
+
protected readonly onDidCompositeClose: Emitter<IComposite>;
|
|
154
|
+
protected toolBar: WorkbenchToolBar | undefined;
|
|
155
|
+
protected titleLabelElement: HTMLElement | undefined;
|
|
156
|
+
private readonly mapCompositeToCompositeContainer;
|
|
157
|
+
private readonly mapActionsBindingToComposite;
|
|
158
|
+
private activeComposite;
|
|
159
|
+
private lastActiveCompositeId;
|
|
160
|
+
private readonly instantiatedCompositeItems;
|
|
161
|
+
private titleLabel;
|
|
162
|
+
private progressBar;
|
|
163
|
+
private contentAreaSize;
|
|
164
|
+
private readonly telemetryActionsListener;
|
|
165
|
+
private currentCompositeOpenToken;
|
|
166
|
+
private boundarySashes;
|
|
167
|
+
constructor(notificationService: INotificationService, storageService: IStorageService, telemetryService: ITelemetryService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, registry: CompositeRegistry<T>, activeCompositeSettingsKey: string, defaultCompositeId: string, nameForTelemetry: string, compositeCSSClass: string, titleForegroundColor: string | undefined, id: string, options: IPartOptions);
|
|
168
|
+
protected openComposite(id: string, focus?: boolean): Composite | undefined;
|
|
169
|
+
private doOpenComposite;
|
|
170
|
+
protected createComposite(id: string, isActive?: boolean): Composite;
|
|
171
|
+
protected showComposite(composite: Composite): void;
|
|
172
|
+
protected onTitleAreaUpdate(compositeId: string): void;
|
|
173
|
+
private updateTitle;
|
|
174
|
+
private collectCompositeActions;
|
|
175
|
+
protected getActiveComposite(): IComposite | undefined;
|
|
176
|
+
protected getLastActiveCompositeId(): string;
|
|
177
|
+
protected hideActiveComposite(): Composite | undefined;
|
|
178
|
+
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
179
|
+
protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
|
|
180
|
+
updateStyles(): void;
|
|
181
|
+
protected actionViewItemProvider(action: IAction): IActionViewItem | undefined;
|
|
182
|
+
protected actionsContextProvider(): unknown;
|
|
183
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
184
|
+
getProgressIndicator(id: string): IProgressIndicator | undefined;
|
|
185
|
+
protected getTitleAreaDropDownAnchorAlignment(): AnchorAlignment;
|
|
186
|
+
layout(width: number, height: number, top: number, left: number): void;
|
|
187
|
+
setBoundarySashes?(sashes: IBoundarySashes): void;
|
|
188
|
+
protected removeComposite(compositeId: string): boolean;
|
|
189
|
+
dispose(): void;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface IPaneCompositePart extends IView {
|
|
193
|
+
readonly onDidPaneCompositeOpen: Event<IPaneComposite>;
|
|
194
|
+
readonly onDidPaneCompositeClose: Event<IPaneComposite>;
|
|
195
|
+
/**
|
|
196
|
+
* Opens a viewlet with the given identifier and pass keyboard focus to it if specified.
|
|
197
|
+
*/
|
|
198
|
+
openPaneComposite(id: string | undefined, focus?: boolean): Promise<IPaneComposite | undefined>;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the current active viewlet if any.
|
|
201
|
+
*/
|
|
202
|
+
getActivePaneComposite(): IPaneComposite | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Returns the viewlet by id.
|
|
205
|
+
*/
|
|
206
|
+
getPaneComposite(id: string): PaneCompositeDescriptor | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* Returns all enabled viewlets
|
|
209
|
+
*/
|
|
210
|
+
getPaneComposites(): PaneCompositeDescriptor[];
|
|
211
|
+
/**
|
|
212
|
+
* Returns the progress indicator for the side bar.
|
|
213
|
+
*/
|
|
214
|
+
getProgressIndicator(id: string): IProgressIndicator | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* Hide the active viewlet.
|
|
217
|
+
*/
|
|
218
|
+
hideActivePaneComposite(): void;
|
|
219
|
+
/**
|
|
220
|
+
* Return the last active viewlet id.
|
|
221
|
+
*/
|
|
222
|
+
getLastActivePaneCompositeId(): string;
|
|
223
|
+
}
|
|
224
|
+
interface IPaneCompositeSelectorPart {
|
|
225
|
+
/**
|
|
226
|
+
* Returns id of pinned view containers following the visual order.
|
|
227
|
+
*/
|
|
228
|
+
getPinnedPaneCompositeIds(): string[];
|
|
229
|
+
/**
|
|
230
|
+
* Returns id of visible view containers following the visual order.
|
|
231
|
+
*/
|
|
232
|
+
getVisiblePaneCompositeIds(): string[];
|
|
233
|
+
/**
|
|
234
|
+
* Show an activity in a viewlet.
|
|
235
|
+
*/
|
|
236
|
+
showActivity(id: string, badge: IBadge, clazz?: string, priority?: number): IDisposable;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class SidebarPart extends CompositePart<PaneComposite> implements IPaneCompositePart {
|
|
240
|
+
private readonly viewDescriptorService;
|
|
241
|
+
private readonly contextKeyService;
|
|
242
|
+
private readonly extensionService;
|
|
243
|
+
readonly _serviceBrand: undefined;
|
|
244
|
+
static readonly activeViewletSettingsKey = "workbench.sidebar.activeviewletid";
|
|
245
|
+
readonly minimumWidth: number;
|
|
246
|
+
readonly maximumWidth: number;
|
|
247
|
+
readonly minimumHeight: number;
|
|
248
|
+
readonly maximumHeight: number;
|
|
249
|
+
readonly priority: LayoutPriority;
|
|
250
|
+
readonly snap = true;
|
|
251
|
+
get preferredWidth(): number | undefined;
|
|
252
|
+
get onDidPaneCompositeRegister(): Event<PaneCompositeDescriptor>;
|
|
253
|
+
private _onDidViewletDeregister;
|
|
254
|
+
readonly onDidPaneCompositeDeregister: Event<PaneCompositeDescriptor>;
|
|
255
|
+
get onDidPaneCompositeOpen(): Event<IPaneComposite>;
|
|
256
|
+
get onDidPaneCompositeClose(): Event<IPaneComposite>;
|
|
257
|
+
private readonly viewletRegistry;
|
|
258
|
+
private readonly sideBarFocusContextKey;
|
|
259
|
+
private readonly activeViewletContextKey;
|
|
260
|
+
private blockOpeningViewlet;
|
|
261
|
+
constructor(notificationService: INotificationService, storageService: IStorageService, telemetryService: ITelemetryService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService);
|
|
262
|
+
private registerListeners;
|
|
263
|
+
create(parent: HTMLElement): void;
|
|
264
|
+
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
265
|
+
updateStyles(): void;
|
|
266
|
+
layout(width: number, height: number, top: number, left: number): void;
|
|
267
|
+
getActivePaneComposite(): IPaneComposite | undefined;
|
|
268
|
+
getLastActivePaneCompositeId(): string;
|
|
269
|
+
hideActivePaneComposite(): void;
|
|
270
|
+
openPaneComposite(id: string | undefined, focus?: boolean): Promise<IPaneComposite | undefined>;
|
|
271
|
+
getPaneComposites(): PaneCompositeDescriptor[];
|
|
272
|
+
getPaneComposite(id: string): PaneCompositeDescriptor;
|
|
273
|
+
private doOpenViewlet;
|
|
274
|
+
protected getTitleAreaDropDownAnchorAlignment(): AnchorAlignment;
|
|
275
|
+
private onTitleAreaContextMenu;
|
|
276
|
+
toJSON(): object;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare class ActivityService implements IActivityService {
|
|
280
|
+
private readonly paneCompositeService;
|
|
281
|
+
private readonly viewDescriptorService;
|
|
282
|
+
private readonly instantiationService;
|
|
283
|
+
_serviceBrand: undefined;
|
|
284
|
+
private viewActivities;
|
|
285
|
+
constructor(paneCompositeService: IPaneCompositePartService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService);
|
|
286
|
+
showViewContainerActivity(viewContainerId: string, { badge, clazz, priority }: IActivity): IDisposable;
|
|
287
|
+
showViewActivity(viewId: string, activity: IActivity): IDisposable;
|
|
288
|
+
showAccountsActivity({ badge, clazz, priority }: IActivity): IDisposable;
|
|
289
|
+
showGlobalActivity({ badge, clazz, priority }: IActivity): IDisposable;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
declare class ActivitybarPart extends Part implements IPaneCompositeSelectorPart {
|
|
293
|
+
private readonly paneCompositePart;
|
|
294
|
+
private readonly instantiationService;
|
|
295
|
+
private readonly storageService;
|
|
296
|
+
private readonly extensionService;
|
|
297
|
+
private readonly viewDescriptorService;
|
|
298
|
+
private readonly contextKeyService;
|
|
299
|
+
private readonly configurationService;
|
|
300
|
+
private readonly environmentService;
|
|
301
|
+
readonly _serviceBrand: undefined;
|
|
302
|
+
private static readonly PINNED_VIEW_CONTAINERS;
|
|
303
|
+
private static readonly PLACEHOLDER_VIEW_CONTAINERS;
|
|
304
|
+
private static readonly ACTION_HEIGHT;
|
|
305
|
+
private static readonly ACCOUNTS_ACTION_INDEX;
|
|
306
|
+
private static readonly GEAR_ICON;
|
|
307
|
+
private static readonly ACCOUNTS_ICON;
|
|
308
|
+
readonly minimumWidth: number;
|
|
309
|
+
readonly maximumWidth: number;
|
|
310
|
+
readonly minimumHeight: number;
|
|
311
|
+
readonly maximumHeight: number;
|
|
312
|
+
private content;
|
|
313
|
+
private menuBar;
|
|
314
|
+
private menuBarContainer;
|
|
315
|
+
private compositeBar;
|
|
316
|
+
private compositeBarContainer;
|
|
317
|
+
private globalActivityAction;
|
|
318
|
+
private globalActivityActionBar;
|
|
319
|
+
private globalActivitiesContainer;
|
|
320
|
+
private readonly globalActivity;
|
|
321
|
+
private accountsActivityAction;
|
|
322
|
+
private readonly accountsActivity;
|
|
323
|
+
private readonly compositeActions;
|
|
324
|
+
private readonly viewContainerDisposables;
|
|
325
|
+
private readonly keyboardNavigationDisposables;
|
|
326
|
+
private readonly location;
|
|
327
|
+
private hasExtensionsRegistered;
|
|
328
|
+
private readonly enabledViewContainersContextKeys;
|
|
329
|
+
constructor(paneCompositePart: IPaneCompositePart, instantiationService: IInstantiationService, layoutService: IWorkbenchLayoutService, themeService: IThemeService, storageService: IStorageService, extensionService: IExtensionService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, environmentService: IWorkbenchEnvironmentService);
|
|
330
|
+
private createCompositeBar;
|
|
331
|
+
private getActivityHoverOptions;
|
|
332
|
+
private getContextMenuActionsForComposite;
|
|
333
|
+
private registerListeners;
|
|
334
|
+
private onDidChangeViewContainers;
|
|
335
|
+
private onDidChangeViewContainerLocation;
|
|
336
|
+
private onDidChangeViewContainerVisibility;
|
|
337
|
+
private onDidRegisterExtensions;
|
|
338
|
+
private onDidViewContainerVisible;
|
|
339
|
+
showActivity(viewContainerOrActionId: string, badge: IBadge, clazz?: string, priority?: number): IDisposable;
|
|
340
|
+
private showGlobalActivity;
|
|
341
|
+
private removeGlobalActivity;
|
|
342
|
+
private updateGlobalActivity;
|
|
343
|
+
private getCumulativeNumberBadge;
|
|
344
|
+
private uninstallMenubar;
|
|
345
|
+
private installMenubar;
|
|
346
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
347
|
+
private registerKeyboardNavigationListeners;
|
|
348
|
+
private createGlobalActivityActionBar;
|
|
349
|
+
private toggleAccountsActivity;
|
|
350
|
+
private getCompositeActions;
|
|
351
|
+
private onDidRegisterViewContainers;
|
|
352
|
+
private onDidDeregisterViewContainer;
|
|
353
|
+
private updateActivity;
|
|
354
|
+
private toActivity;
|
|
355
|
+
private static toActivity;
|
|
356
|
+
private showOrHideViewContainer;
|
|
357
|
+
private shouldBeHidden;
|
|
358
|
+
private addComposite;
|
|
359
|
+
private hideComposite;
|
|
360
|
+
private removeComposite;
|
|
361
|
+
getPinnedPaneCompositeIds(): string[];
|
|
362
|
+
getVisiblePaneCompositeIds(): string[];
|
|
363
|
+
focus(): void;
|
|
364
|
+
updateStyles(): void;
|
|
365
|
+
private getActivitybarItemColors;
|
|
366
|
+
layout(width: number, height: number): void;
|
|
367
|
+
private getViewContainer;
|
|
368
|
+
private getViewContainers;
|
|
369
|
+
private onDidStorageValueChange;
|
|
370
|
+
private saveCachedViewContainers;
|
|
371
|
+
private _cachedViewContainers;
|
|
372
|
+
private get cachedViewContainers();
|
|
373
|
+
private storeCachedViewContainersState;
|
|
374
|
+
private getPinnedViewContainers;
|
|
375
|
+
private setPinnedViewContainers;
|
|
376
|
+
private _pinnedViewContainersValue;
|
|
377
|
+
private get pinnedViewContainersValue();
|
|
378
|
+
private set pinnedViewContainersValue(value);
|
|
379
|
+
private getStoredPinnedViewContainersValue;
|
|
380
|
+
private setStoredPinnedViewContainersValue;
|
|
381
|
+
private getPlaceholderViewContainers;
|
|
382
|
+
private setPlaceholderViewContainers;
|
|
383
|
+
private _placeholderViewContainersValue;
|
|
384
|
+
private get placeholderViewContainersValue();
|
|
385
|
+
private set placeholderViewContainersValue(value);
|
|
386
|
+
private getStoredPlaceholderViewContainersValue;
|
|
387
|
+
private setStoredPlaceholderViewContainersValue;
|
|
388
|
+
private get accountsVisibilityPreference();
|
|
389
|
+
private set accountsVisibilityPreference(value);
|
|
390
|
+
toJSON(): object;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare class HoverService implements IHoverService {
|
|
394
|
+
private readonly _instantiationService;
|
|
395
|
+
private readonly _contextViewService;
|
|
396
|
+
private readonly _keybindingService;
|
|
397
|
+
readonly _serviceBrand: undefined;
|
|
398
|
+
private _currentHoverOptions;
|
|
399
|
+
private _currentHover;
|
|
400
|
+
private _lastFocusedElementBeforeOpen;
|
|
401
|
+
constructor(_instantiationService: IInstantiationService, _contextViewService: IContextViewService, contextMenuService: IContextMenuService, _keybindingService: IKeybindingService);
|
|
402
|
+
showHover(options: IHoverOptions, focus?: boolean): IHoverWidget | undefined;
|
|
403
|
+
hideHover(): void;
|
|
404
|
+
private _intersectionChange;
|
|
405
|
+
private _keyDown;
|
|
406
|
+
private _keyUp;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface IActivityHoverOptions {
|
|
410
|
+
readonly position: () => HoverPosition;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface IPanelPartOptions extends IPartOptions {
|
|
414
|
+
hasTitle: true;
|
|
415
|
+
borderWidth?: (() => number);
|
|
416
|
+
useIcons?: boolean;
|
|
417
|
+
}
|
|
418
|
+
declare abstract class BasePanelPart extends CompositePart<PaneComposite> implements IPaneCompositePart, IPaneCompositeSelectorPart {
|
|
419
|
+
private readonly viewDescriptorService;
|
|
420
|
+
protected readonly contextKeyService: IContextKeyService;
|
|
421
|
+
private readonly extensionService;
|
|
422
|
+
private readonly partId;
|
|
423
|
+
private readonly pinnedPanelsKey;
|
|
424
|
+
private readonly placeholdeViewContainersKey;
|
|
425
|
+
private readonly backgroundColor;
|
|
426
|
+
private readonly viewContainerLocation;
|
|
427
|
+
private readonly activePanelContextKey;
|
|
428
|
+
private panelFocusContextKey;
|
|
429
|
+
private readonly panelOptions;
|
|
430
|
+
private static readonly MIN_COMPOSITE_BAR_WIDTH;
|
|
431
|
+
readonly _serviceBrand: undefined;
|
|
432
|
+
readonly minimumWidth: number;
|
|
433
|
+
readonly maximumWidth: number;
|
|
434
|
+
readonly minimumHeight: number;
|
|
435
|
+
readonly maximumHeight: number;
|
|
436
|
+
readonly snap = true;
|
|
437
|
+
get preferredHeight(): number | undefined;
|
|
438
|
+
get preferredWidth(): number | undefined;
|
|
439
|
+
get onDidPaneCompositeOpen(): Event<IPaneComposite>;
|
|
440
|
+
readonly onDidPaneCompositeClose: Event<IPaneComposite>;
|
|
441
|
+
private compositeBar;
|
|
442
|
+
private readonly compositeActions;
|
|
443
|
+
private globalToolBar;
|
|
444
|
+
private globalActions;
|
|
445
|
+
private readonly panelDisposables;
|
|
446
|
+
private blockOpeningPanel;
|
|
447
|
+
protected contentDimension: Dimension | undefined;
|
|
448
|
+
private extensionsRegistered;
|
|
449
|
+
private panelRegistry;
|
|
450
|
+
private dndHandler;
|
|
451
|
+
private readonly enabledViewContainersContextKeys;
|
|
452
|
+
constructor(notificationService: INotificationService, storageService: IStorageService, telemetryService: ITelemetryService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, partId: Parts.PANEL_PART | Parts.AUXILIARYBAR_PART, activePanelSettingsKey: string, pinnedPanelsKey: string, placeholdeViewContainersKey: string, panelRegistryId: string, backgroundColor: string, viewContainerLocation: ViewContainerLocation, activePanelContextKey: IContextKey<string>, panelFocusContextKey: IContextKey<boolean>, panelOptions: IPanelPartOptions);
|
|
453
|
+
protected abstract getActivityHoverOptions(): IActivityHoverOptions;
|
|
454
|
+
protected abstract fillExtraContextMenuActions(actions: IAction[]): void;
|
|
455
|
+
private getContextMenuActionsForComposite;
|
|
456
|
+
private onDidRegisterPanels;
|
|
457
|
+
private onDidDeregisterPanel;
|
|
458
|
+
private updateActivity;
|
|
459
|
+
private toActivity;
|
|
460
|
+
private static toActivity;
|
|
461
|
+
private showOrHideViewContainer;
|
|
462
|
+
private shouldBeHidden;
|
|
463
|
+
private registerListeners;
|
|
464
|
+
private onDidRegisterExtensions;
|
|
465
|
+
private hideComposite;
|
|
466
|
+
private onPanelOpen;
|
|
467
|
+
private onPanelClose;
|
|
468
|
+
create(parent: HTMLElement): void;
|
|
469
|
+
private createEmptyPanelMessage;
|
|
470
|
+
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
471
|
+
updateStyles(): void;
|
|
472
|
+
doOpenPanel(id: string, focus?: boolean): PaneComposite | undefined;
|
|
473
|
+
openPaneComposite(id?: string, focus?: boolean): Promise<PaneComposite | undefined>;
|
|
474
|
+
showActivity(panelId: string, badge: IBadge, clazz?: string): IDisposable;
|
|
475
|
+
getPaneComposite(panelId: string): PaneCompositeDescriptor | undefined;
|
|
476
|
+
getPaneComposites(): PaneCompositeDescriptor[];
|
|
477
|
+
getPinnedPaneCompositeIds(): string[];
|
|
478
|
+
getVisiblePaneCompositeIds(): string[];
|
|
479
|
+
getActivePaneComposite(): IPaneComposite | undefined;
|
|
480
|
+
getLastActivePaneCompositeId(): string;
|
|
481
|
+
hideActivePaneComposite(): void;
|
|
482
|
+
protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
|
|
483
|
+
protected onTitleAreaUpdate(compositeId: string): void;
|
|
484
|
+
layout(width: number, height: number, top: number, left: number): void;
|
|
485
|
+
private layoutCompositeBar;
|
|
486
|
+
private emptyPanelMessageElement;
|
|
487
|
+
private layoutEmptyMessage;
|
|
488
|
+
private getViewContainer;
|
|
489
|
+
private updateGlobalToolbarActions;
|
|
490
|
+
private getCompositeActions;
|
|
491
|
+
protected removeComposite(compositeId: string): boolean;
|
|
492
|
+
protected getToolbarWidth(): number;
|
|
493
|
+
private onDidStorageValueChange;
|
|
494
|
+
private saveCachedPanels;
|
|
495
|
+
private getCachedPanels;
|
|
496
|
+
private _cachedPanelsValue;
|
|
497
|
+
private get cachedPanelsValue();
|
|
498
|
+
private set cachedPanelsValue(value);
|
|
499
|
+
private getStoredCachedPanelsValue;
|
|
500
|
+
private setStoredCachedViewletsValue;
|
|
501
|
+
private getPlaceholderViewContainers;
|
|
502
|
+
private setPlaceholderViewContainers;
|
|
503
|
+
private _placeholderViewContainersValue;
|
|
504
|
+
private get placeholderViewContainersValue();
|
|
505
|
+
private set placeholderViewContainersValue(value);
|
|
506
|
+
private getStoredPlaceholderViewContainersValue;
|
|
507
|
+
private setStoredPlaceholderViewContainersValue;
|
|
508
|
+
}
|
|
509
|
+
declare class PanelPart extends BasePanelPart {
|
|
510
|
+
private commandService;
|
|
511
|
+
private menuService;
|
|
512
|
+
static readonly activePanelSettingsKey = "workbench.panelpart.activepanelid";
|
|
513
|
+
constructor(notificationService: INotificationService, storageService: IStorageService, telemetryService: ITelemetryService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, commandService: ICommandService, menuService: IMenuService);
|
|
514
|
+
updateStyles(): void;
|
|
515
|
+
protected getActivityHoverOptions(): IActivityHoverOptions;
|
|
516
|
+
protected fillExtraContextMenuActions(actions: IAction[]): void;
|
|
517
|
+
layout(width: number, height: number, top: number, left: number): void;
|
|
518
|
+
toJSON(): object;
|
|
519
|
+
}
|
|
15
520
|
|
|
16
521
|
/**
|
|
17
522
|
* The Codicon library is a set of default icons that are built-in in VS Code.
|
|
@@ -561,6 +1066,57 @@ declare const Codicon: {
|
|
|
561
1066
|
readonly quickInputBack: ThemeIcon;
|
|
562
1067
|
};
|
|
563
1068
|
|
|
1069
|
+
declare class StatusbarPart extends Part implements IStatusbarService {
|
|
1070
|
+
private readonly instantiationService;
|
|
1071
|
+
private readonly contextService;
|
|
1072
|
+
private readonly storageService;
|
|
1073
|
+
private contextMenuService;
|
|
1074
|
+
private readonly contextKeyService;
|
|
1075
|
+
private readonly hoverService;
|
|
1076
|
+
private readonly configurationService;
|
|
1077
|
+
readonly _serviceBrand: undefined;
|
|
1078
|
+
readonly minimumWidth: number;
|
|
1079
|
+
readonly maximumWidth: number;
|
|
1080
|
+
readonly minimumHeight: number;
|
|
1081
|
+
readonly maximumHeight: number;
|
|
1082
|
+
private styleElement;
|
|
1083
|
+
private pendingEntries;
|
|
1084
|
+
private readonly viewModel;
|
|
1085
|
+
readonly onDidChangeEntryVisibility: Event<{
|
|
1086
|
+
id: string;
|
|
1087
|
+
visible: boolean;
|
|
1088
|
+
}>;
|
|
1089
|
+
private leftItemsContainer;
|
|
1090
|
+
private rightItemsContainer;
|
|
1091
|
+
private readonly hoverDelegate;
|
|
1092
|
+
private readonly compactEntriesDisposable;
|
|
1093
|
+
private readonly styleOverrides;
|
|
1094
|
+
constructor(instantiationService: IInstantiationService, themeService: IThemeService, contextService: IWorkspaceContextService, storageService: IStorageService, layoutService: IWorkbenchLayoutService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, hoverService: IHoverService, configurationService: IConfigurationService);
|
|
1095
|
+
private registerListeners;
|
|
1096
|
+
addEntry(entry: IStatusbarEntry, id: string, alignment: StatusbarAlignment, priorityOrLocation?: number | IStatusbarEntryLocation | IStatusbarEntryPriority): IStatusbarEntryAccessor;
|
|
1097
|
+
private doAddPendingEntry;
|
|
1098
|
+
private doAddEntry;
|
|
1099
|
+
private doCreateStatusItem;
|
|
1100
|
+
private doAddOrRemoveModelEntry;
|
|
1101
|
+
isEntryVisible(id: string): boolean;
|
|
1102
|
+
updateEntryVisibility(id: string, visible: boolean): void;
|
|
1103
|
+
focusNextEntry(): void;
|
|
1104
|
+
focusPreviousEntry(): void;
|
|
1105
|
+
isEntryFocused(): boolean;
|
|
1106
|
+
focus(preserveEntryFocus?: boolean): void;
|
|
1107
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
1108
|
+
private createInitialStatusbarEntries;
|
|
1109
|
+
private appendStatusbarEntries;
|
|
1110
|
+
private appendStatusbarEntry;
|
|
1111
|
+
private updateCompactEntries;
|
|
1112
|
+
private showContextMenu;
|
|
1113
|
+
private getContextMenuActions;
|
|
1114
|
+
updateStyles(): void;
|
|
1115
|
+
layout(width: number, height: number, top: number, left: number): void;
|
|
1116
|
+
overrideStyle(style: IStatusbarStyleOverride): IDisposable;
|
|
1117
|
+
toJSON(): object;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
564
1120
|
declare function renderActivitybarPar(container: HTMLElement): IDisposable;
|
|
565
1121
|
declare function renderSidebarPart(container: HTMLElement): IDisposable;
|
|
566
1122
|
declare function renderPanelPart(container: HTMLElement): IDisposable;
|
|
@@ -587,4 +1143,4 @@ interface CustomViewOption {
|
|
|
587
1143
|
declare function registerCustomView(options: CustomViewOption): IDisposable;
|
|
588
1144
|
declare function getServiceOverride(openEditorFallback?: OpenEditor): IEditorOverrideServices;
|
|
589
1145
|
|
|
590
|
-
export { CustomViewOption, OpenEditor, ViewContainerLocation, getServiceOverride as default, registerCustomView, renderActivitybarPar, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
|
1146
|
+
export { ActivityService, ActivitybarPart, CustomViewOption, HoverService, OpenEditor, PanelPart, SidebarPart, StatusbarPart, ViewContainerLocation, getServiceOverride as default, registerCustomView, renderActivitybarPar, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
|
@@ -307,4 +307,4 @@ function getServiceOverride(openEditorFallback) {
|
|
|
307
307
|
[( IHistoryService.toString())]: new SyncDescriptor(HistoryService)
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
export { getServiceOverride as default, registerCustomView, renderActivitybarPar, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
|
310
|
+
export { ActivityService, ActivitybarPart, HoverService, PanelPart, SidebarPart, StatusbarPart, getServiceOverride as default, registerCustomView, renderActivitybarPar, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|