@codingame/monaco-vscode-views-service-override 4.5.0-improve-code-splitting.1 → 4.5.1

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,24 +1,2 @@
1
- export { InitializationStateTransformer, attachPart, default, isEditorPartVisible, onPartVisibilityChange, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart } from './views.js';
2
- export { SidebarPart } from './vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js';
3
- export { ActivityService } from './vscode/src/vs/workbench/services/activity/browser/activityService.js';
4
- export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js';
5
- export { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
6
- export { PanelPart } from './vscode/src/vs/workbench/browser/parts/panel/panelPart.js';
7
- export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
8
- export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
9
- export { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
10
- export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
11
- export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
12
- export { CustomViewOption, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
13
- export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
14
- export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
15
- export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
16
- export { ConfirmResult } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
17
- export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
18
- export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
19
- export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
20
- export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
21
- export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
22
- export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
23
- export { ILayoutInitializationState } from 'vscode/vscode/vs/workbench/browser/layout';
24
- export { OpenEditor } from './tools/editor.js';
1
+ export * from 'vscode/service-override/views';
2
+ export { default } from 'vscode/service-override/views';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-views-service-override",
3
- "version": "4.5.0-improve-code-splitting.1",
3
+ "version": "4.5.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@4.5.0-improve-code-splitting.1",
30
- "@codingame/monaco-vscode-quickaccess-service-override": "4.5.0-improve-code-splitting.1",
31
- "@codingame/monaco-vscode-keybindings-service-override": "4.5.0-improve-code-splitting.1",
32
- "@codingame/monaco-vscode-view-common-service-override": "4.5.0-improve-code-splitting.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@4.5.1",
30
+ "@codingame/monaco-vscode-quickaccess-service-override": "4.5.1",
31
+ "@codingame/monaco-vscode-keybindings-service-override": "4.5.1",
32
+ "@codingame/monaco-vscode-view-common-service-override": "4.5.1"
33
33
  }
34
34
  }
package/tools/editor.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
2
- import { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
3
- import { ICodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
4
- import { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
5
-
6
- type OpenEditor = (modelRef: IReference<IResolvedTextEditorModel>, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise<ICodeEditor | undefined>;
7
-
8
- export type { OpenEditor };
package/tools/views.d.ts DELETED
@@ -1,106 +0,0 @@
1
- import { ViewContainerLocation, ViewContainer, IViewContainersRegistry, IViewsRegistry } from 'vscode/vscode/vs/workbench/common/views';
2
- export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
3
- import { BrandedService, ServicesAccessor } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
4
- import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
6
- import { Event } from 'vscode/vscode/vs/base/common/event';
7
- import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
8
- export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
9
- import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
10
- import { URI } from 'vscode/vscode/vs/base/common/uri';
11
- import { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
12
- import { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
13
- export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
14
- import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
15
- import { RegisteredEditorInfo, RegisteredEditorOptions, EditorInputFactoryObject } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
16
- export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
17
- import { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
18
- export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
19
- import { IEditorOpenContext, EditorInputCapabilities, Verbosity, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
20
- export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
21
- import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
22
- import { IEditorGroup } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
23
-
24
- type Label = string | {
25
- short: string;
26
- medium: string;
27
- long: string;
28
- };
29
- declare abstract class InjectedEditorPane extends EditorPane {
30
- constructor(id: string);
31
- }
32
- declare abstract class SimpleEditorPane extends InjectedEditorPane {
33
- protected container: HTMLElement;
34
- protected wrapper: HTMLElement;
35
- protected scrollbar: DomScrollableElement | undefined;
36
- private inputDisposable;
37
- protected createEditor(parent: HTMLElement): void;
38
- setInput(input: EditorInput, editorOptions: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
39
- layout(dimension: Dimension): void;
40
- focus(): void;
41
- clearInput(): void;
42
- abstract initialize(): HTMLElement;
43
- abstract renderInput?(input: EditorInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<IDisposable>;
44
- }
45
- declare abstract class SimpleEditorInput extends EditorInput {
46
- closeHandler?: IEditorCloseHandler | undefined;
47
- private dirty;
48
- private _capabilities;
49
- private name;
50
- private title;
51
- private description;
52
- resource: URI | undefined;
53
- constructor(resource?: URI, closeHandler?: IEditorCloseHandler | undefined);
54
- get capabilities(): EditorInputCapabilities;
55
- addCapability(capability: EditorInputCapabilities): void;
56
- removeCapability(capability: EditorInputCapabilities): void;
57
- get editorId(): string | undefined;
58
- setName(name: string): void;
59
- setTitle(title: Label): void;
60
- setDescription(description: string): void;
61
- private getLabelValue;
62
- getName(): string;
63
- getTitle(verbosity?: Verbosity): string;
64
- getDescription(verbosity?: Verbosity): string;
65
- isDirty(): boolean;
66
- setDirty(dirty: boolean): void;
67
- }
68
- declare function registerEditorPane<Services extends BrandedService[]>(typeId: string, name: string, ctor: new (group: IEditorGroup, ...services: Services) => EditorPane, inputCtors: (new (...args: any[]) => EditorInput)[]): IDisposable;
69
- declare function registerEditor(globPattern: string, editorInfo: RegisteredEditorInfo, editorOptions: RegisteredEditorOptions, factory: EditorInputFactoryObject): IDisposable;
70
- declare function registerEditorSerializer<Services extends BrandedService[]>(editorTypeId: string, ctor: {
71
- new (...Services: Services): IEditorSerializer;
72
- }): IDisposable;
73
- interface CustomViewOption {
74
- readonly id: string;
75
- name: string;
76
- order?: number;
77
- renderBody(container: HTMLElement, scrollbar: DomScrollableElement): IDisposable;
78
- location: ViewContainerLocation;
79
- icon?: string;
80
- canMoveView?: boolean;
81
- default?: boolean;
82
- actions?: {
83
- id: string;
84
- title: string;
85
- tooltip?: string;
86
- order?: number;
87
- run?(accessor: ServicesAccessor): Promise<void>;
88
- icon?: keyof typeof Codicon;
89
- render?(container: HTMLElement): void;
90
- }[];
91
- viewContainer?: ViewContainer;
92
- canToggleVisibility?: boolean;
93
- hideByDefault?: boolean;
94
- collapsed?: boolean;
95
- }
96
- declare const viewContainerRegistry: IViewContainersRegistry;
97
- declare const viewRegistry: IViewsRegistry;
98
- declare function registerCustomView(options: CustomViewOption): IDisposable;
99
- declare function isPartVisibile(part: Parts): boolean;
100
- declare function setPartVisibility(part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>, visible: boolean): void;
101
- declare const onDidChangePanelPosition: Event<string>;
102
- declare function getPanelPosition(): Position;
103
- declare const onDidChangeSideBarPosition: Event<string>;
104
- declare function getSideBarPosition(): Position;
105
-
106
- export { type CustomViewOption, InjectedEditorPane as EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
package/views.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
2
- import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- export { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
5
- export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
6
- import { Part } from 'vscode/vscode/vs/workbench/browser/part';
7
- import { ILayoutInitializationState } from 'vscode/vscode/vs/workbench/browser/layout';
8
- export { ILayoutInitializationState } from 'vscode/vscode/vs/workbench/browser/layout';
9
- import { OpenEditor } from './tools/editor.js';
10
-
11
- declare function renderPart(partContainer: HTMLElement, part: Part): void;
12
- declare function attachPart(part: Parts, container: HTMLElement): IDisposable;
13
- declare function onPartVisibilityChange(part: Parts, listener: (visible: boolean) => void): IDisposable;
14
- declare function renderActivitybarPar(container: HTMLElement): IDisposable;
15
- declare function renderSidebarPart(container: HTMLElement): IDisposable;
16
- declare function renderPanelPart(container: HTMLElement): IDisposable;
17
- declare function renderAuxiliaryPart(container: HTMLElement): IDisposable;
18
- declare function renderEditorPart(container: HTMLElement): IDisposable;
19
- declare function renderStatusBarPart(container: HTMLElement): IDisposable;
20
- declare function isEditorPartVisible(): boolean;
21
- type InitializationStateTransformer = (state: ILayoutInitializationState) => ILayoutInitializationState;
22
- declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string): IEditorOverrideServices;
23
- /**
24
- * @deprecated Provide restoreEditors with the initializationState.editor.restoreEditors params
25
- */
26
- declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string, restoreEditors?: boolean): IEditorOverrideServices;
27
- declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string, initializationState?: InitializationStateTransformer): IEditorOverrideServices;
28
-
29
- export { type InitializationStateTransformer, OpenEditor, attachPart, getServiceOverride as default, isEditorPartVisible, onPartVisibilityChange, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart };
@@ -1,62 +0,0 @@
1
- import { Event } from 'vscode/vscode/vs/base/common/event';
2
- import { IContextMenuProvider } from 'vscode/vscode/vs/base/browser/contextmenu';
3
- import { ActionBar, ActionsOrientation, IActionViewItemProvider } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
4
- import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/contextview';
5
- import { IActionRunner, IAction } from 'vscode/vscode/vs/base/common/actions';
6
- import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
7
- import { ResolvedKeybinding } from 'vscode/vscode/vs/base/common/keybindings';
8
- import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
9
- import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegate';
10
-
11
- interface IToolBarOptions {
12
- orientation?: ActionsOrientation;
13
- actionViewItemProvider?: IActionViewItemProvider;
14
- ariaLabel?: string;
15
- getKeyBinding?: (action: IAction) => ResolvedKeybinding | undefined;
16
- actionRunner?: IActionRunner;
17
- toggleMenuTitle?: string;
18
- anchorAlignmentProvider?: () => AnchorAlignment;
19
- renderDropdownAsChildElement?: boolean;
20
- moreIcon?: ThemeIcon;
21
- allowContextMenu?: boolean;
22
- skipTelemetry?: boolean;
23
- hoverDelegate?: IHoverDelegate;
24
- /**
25
- * If true, toggled primary items are highlighted with a background color.
26
- */
27
- highlightToggledItems?: boolean;
28
- }
29
- /**
30
- * A widget that combines an action bar for primary actions and a dropdown for secondary actions.
31
- */
32
- declare class ToolBar extends Disposable {
33
- private options;
34
- protected readonly actionBar: ActionBar;
35
- private toggleMenuAction;
36
- private toggleMenuActionViewItem;
37
- private submenuActionViewItems;
38
- private hasSecondaryActions;
39
- private readonly lookupKeybindings;
40
- private readonly element;
41
- private _onDidChangeDropdownVisibility;
42
- readonly onDidChangeDropdownVisibility: Event<boolean>;
43
- private disposables;
44
- constructor(container: HTMLElement, contextMenuProvider: IContextMenuProvider, options?: IToolBarOptions);
45
- set actionRunner(actionRunner: IActionRunner);
46
- get actionRunner(): IActionRunner;
47
- set context(context: unknown);
48
- getElement(): HTMLElement;
49
- focus(): void;
50
- getItemsWidth(): number;
51
- getItemAction(indexOrElement: number | HTMLElement): IAction | undefined;
52
- getItemWidth(index: number): number;
53
- getItemsLength(): number;
54
- setAriaLabel(label: string): void;
55
- setActions(primaryActions: ReadonlyArray<IAction>, secondaryActions?: ReadonlyArray<IAction>): void;
56
- isEmpty(): boolean;
57
- private getKeybindingLabel;
58
- private clear;
59
- dispose(): void;
60
- }
61
-
62
- export { type IToolBarOptions, ToolBar };
@@ -1,73 +0,0 @@
1
- import { ToolBar, IToolBarOptions } from '../../../base/browser/ui/toolbar/toolbar.js';
2
- import { IAction } from 'vscode/vscode/vs/base/common/actions';
3
- import { MenuId, IMenuActionOptions } from 'vscode/vscode/vs/platform/actions/common/actions';
4
- import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
5
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
6
- import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
7
- import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
8
- import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
9
-
10
- declare const enum HiddenItemStrategy {
11
- /** This toolbar doesn't support hiding*/
12
- NoHide = -1,
13
- /** Hidden items aren't shown anywhere */
14
- Ignore = 0,
15
- /** Hidden items move into the secondary group */
16
- RenderInSecondaryGroup = 1
17
- }
18
- type IWorkbenchToolBarOptions = IToolBarOptions & {
19
- /**
20
- * Items of the primary group can be hidden. When this happens the item can
21
- * - move into the secondary popup-menu, or
22
- * - not be shown at all
23
- */
24
- hiddenItemStrategy?: HiddenItemStrategy;
25
- /**
26
- * Optional menu id which is used for a "Reset Menu" command. This should be the
27
- * menu id that defines the contents of this workbench menu
28
- */
29
- resetMenu?: MenuId;
30
- /**
31
- * Optional menu id which items are used for the context menu of the toolbar.
32
- */
33
- contextMenu?: MenuId;
34
- /**
35
- * Optional options how menu actions are created and invoked
36
- */
37
- menuOptions?: IMenuActionOptions;
38
- /**
39
- * When set the `workbenchActionExecuted` is automatically send for each invoked action. The `from` property
40
- * of the event will the passed `telemetrySource`-value
41
- */
42
- telemetrySource?: string;
43
- /** This is controlled by the WorkbenchToolBar */
44
- allowContextMenu?: never;
45
- /**
46
- * Controls the overflow behavior of the primary group of toolbar. This isthe maximum number of items and id of
47
- * items that should never overflow
48
- *
49
- */
50
- overflowBehavior?: {
51
- maxItems: number;
52
- exempted?: string[];
53
- };
54
- };
55
- /**
56
- * The `WorkbenchToolBar` does
57
- * - support hiding of menu items
58
- * - lookup keybindings for each actions automatically
59
- * - send `workbenchActionExecuted`-events for each action
60
- *
61
- * See {@link MenuWorkbenchToolBar} for a toolbar that is backed by a menu.
62
- */
63
- declare class WorkbenchToolBar extends ToolBar {
64
- private _options;
65
- private readonly _menuService;
66
- private readonly _contextKeyService;
67
- private readonly _contextMenuService;
68
- private readonly _sessionDisposables;
69
- constructor(container: HTMLElement, _options: IWorkbenchToolBarOptions | undefined, _menuService: IMenuService, _contextKeyService: IContextKeyService, _contextMenuService: IContextMenuService, keybindingService: IKeybindingService, telemetryService: ITelemetryService);
70
- setActions(_primary: readonly IAction[], _secondary?: readonly IAction[], menuIds?: readonly MenuId[]): void;
71
- }
72
-
73
- export { HiddenItemStrategy, type IWorkbenchToolBarOptions, WorkbenchToolBar };
@@ -1,13 +0,0 @@
1
- import { IDragAndDropData } from 'vscode/vscode/vs/base/browser/dnd';
2
-
3
- type Before2D = {
4
- readonly verticallyBefore: boolean;
5
- readonly horizontallyBefore: boolean;
6
- };
7
- interface ICompositeDragAndDrop {
8
- drop(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent, before?: Before2D): void;
9
- onDragOver(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent): boolean;
10
- onDragEnter(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent): boolean;
11
- }
12
-
13
- export type { Before2D, ICompositeDragAndDrop };
@@ -1,61 +0,0 @@
1
- import { Part } from 'vscode/vscode/vs/workbench/browser/part';
2
- import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
3
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
4
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
5
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
6
- import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
7
- import { IAction } from 'vscode/vscode/vs/base/common/actions';
8
- import { IPaneCompositePart } from '../paneCompositePart.js';
9
- import { PaneCompositeBar, IPaneCompositeBarOptions } from '../paneCompositeBar.js';
10
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
11
- import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
12
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
13
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
14
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
15
- import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
16
-
17
- declare class ActivitybarPart extends Part {
18
- private readonly paneCompositePart;
19
- private readonly instantiationService;
20
- static readonly ACTION_HEIGHT = 48;
21
- static readonly pinnedViewContainersKey = "workbench.activity.pinnedViewlets2";
22
- static readonly placeholderViewContainersKey = "workbench.activity.placeholderViewlets";
23
- static readonly viewContainersWorkspaceStateKey = "workbench.activity.viewletsWorkspaceState";
24
- readonly minimumWidth: number;
25
- readonly maximumWidth: number;
26
- readonly minimumHeight: number;
27
- readonly maximumHeight: number;
28
- private readonly compositeBar;
29
- private content;
30
- constructor(paneCompositePart: IPaneCompositePart, instantiationService: IInstantiationService, layoutService: IWorkbenchLayoutService, themeService: IThemeService, storageService: IStorageService);
31
- private createCompositeBar;
32
- protected createContentArea(parent: HTMLElement): HTMLElement;
33
- getPinnedPaneCompositeIds(): string[];
34
- getVisiblePaneCompositeIds(): string[];
35
- focus(): void;
36
- updateStyles(): void;
37
- show(focus?: boolean): void;
38
- hide(): void;
39
- layout(width: number, height: number): void;
40
- toJSON(): object;
41
- }
42
- declare class ActivityBarCompositeBar extends PaneCompositeBar {
43
- private readonly configurationService;
44
- private readonly menuService;
45
- private element;
46
- private menuBar;
47
- private menuBarContainer;
48
- private compositeBarContainer;
49
- private readonly globalCompositeBar;
50
- private readonly keyboardNavigationDisposables;
51
- constructor(options: IPaneCompositeBarOptions, part: Parts, paneCompositePart: IPaneCompositePart, showGlobalActivities: boolean, instantiationService: IInstantiationService, storageService: IStorageService, extensionService: IExtensionService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, environmentService: IWorkbenchEnvironmentService, configurationService: IConfigurationService, menuService: IMenuService, layoutService: IWorkbenchLayoutService);
52
- private fillContextMenuActions;
53
- private uninstallMenubar;
54
- private installMenubar;
55
- private registerKeyboardNavigationListeners;
56
- create(parent: HTMLElement): HTMLElement;
57
- layout(width: number, height: number): void;
58
- getActivityBarContextMenuActions(): IAction[];
59
- }
60
-
61
- export { ActivityBarCompositeBar, ActivitybarPart };
@@ -1,20 +0,0 @@
1
- import { HoverPosition } from 'vscode/vscode/vs/base/browser/ui/hover/hoverWidget';
2
- import { Color } from 'vscode/vscode/vs/base/common/color';
3
-
4
- interface ICompositeBarColors {
5
- readonly activeBackgroundColor?: Color;
6
- readonly inactiveBackgroundColor?: Color;
7
- readonly activeBorderColor?: Color;
8
- readonly activeBackground?: Color;
9
- readonly activeBorderBottomColor?: Color;
10
- readonly activeForegroundColor?: Color;
11
- readonly inactiveForegroundColor?: Color;
12
- readonly badgeBackground?: Color;
13
- readonly badgeForeground?: Color;
14
- readonly dragAndDropBorder?: Color;
15
- }
16
- interface IActivityHoverOptions {
17
- readonly position: () => HoverPosition;
18
- }
19
-
20
- export type { IActivityHoverOptions, ICompositeBarColors };
@@ -1,89 +0,0 @@
1
- import { Emitter } from 'vscode/vscode/vs/base/common/event';
2
- import { IActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
3
- import { IAction } from 'vscode/vscode/vs/base/common/actions';
4
- import { Part, IPartOptions } from 'vscode/vscode/vs/workbench/browser/part';
5
- import { Composite, CompositeRegistry } from 'vscode/vscode/vs/workbench/browser/composite';
6
- import { IComposite } from 'vscode/vscode/vs/workbench/common/composite';
7
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
8
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
9
- import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
10
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
11
- import { IProgressIndicator } from 'vscode/vscode/vs/platform/progress/common/progress';
12
- import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
13
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
14
- import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
15
- import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/contextview';
16
- import { WorkbenchToolBar } from '../../../platform/actions/browser/toolbar.js';
17
- import { IBoundarySashes } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
18
- import { IBaseActionViewItemOptions } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
19
- import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegate';
20
-
21
- interface ICompositeTitleLabel {
22
- /**
23
- * Asks to update the title for the composite with the given ID.
24
- */
25
- updateTitle(id: string, title: string, keybinding?: string): void;
26
- /**
27
- * Called when theming information changes.
28
- */
29
- updateStyles(): void;
30
- }
31
- declare abstract class CompositePart<T extends Composite> extends Part {
32
- private readonly notificationService;
33
- protected readonly storageService: IStorageService;
34
- protected readonly contextMenuService: IContextMenuService;
35
- protected readonly keybindingService: IKeybindingService;
36
- protected readonly instantiationService: IInstantiationService;
37
- protected readonly registry: CompositeRegistry<T>;
38
- private readonly activeCompositeSettingsKey;
39
- private readonly defaultCompositeId;
40
- private readonly nameForTelemetry;
41
- private readonly compositeCSSClass;
42
- private readonly titleForegroundColor;
43
- protected readonly onDidCompositeOpen: Emitter<{
44
- composite: IComposite;
45
- focus: boolean;
46
- }>;
47
- protected readonly onDidCompositeClose: Emitter<IComposite>;
48
- protected toolBar: WorkbenchToolBar | undefined;
49
- protected titleLabelElement: HTMLElement | undefined;
50
- protected readonly toolbarHoverDelegate: IHoverDelegate;
51
- private readonly mapCompositeToCompositeContainer;
52
- private readonly mapActionsBindingToComposite;
53
- private activeComposite;
54
- private lastActiveCompositeId;
55
- private readonly instantiatedCompositeItems;
56
- protected titleLabel: ICompositeTitleLabel | undefined;
57
- private progressBar;
58
- private contentAreaSize;
59
- private readonly actionsListener;
60
- private currentCompositeOpenToken;
61
- private boundarySashes;
62
- constructor(notificationService: INotificationService, storageService: IStorageService, 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);
63
- protected openComposite(id: string, focus?: boolean): Composite | undefined;
64
- private doOpenComposite;
65
- protected createComposite(id: string, isActive?: boolean): Composite;
66
- protected showComposite(composite: Composite): void;
67
- protected onTitleAreaUpdate(compositeId: string): void;
68
- private updateTitle;
69
- private collectCompositeActions;
70
- protected getActiveComposite(): IComposite | undefined;
71
- protected getLastActiveCompositeId(): string;
72
- protected hideActiveComposite(): Composite | undefined;
73
- protected createTitleArea(parent: HTMLElement): HTMLElement;
74
- protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
75
- protected createHeaderArea(): HTMLElement;
76
- protected createFooterArea(): HTMLElement;
77
- updateStyles(): void;
78
- protected actionViewItemProvider(action: IAction, options: IBaseActionViewItemOptions): IActionViewItem | undefined;
79
- protected actionsContextProvider(): unknown;
80
- protected createContentArea(parent: HTMLElement): HTMLElement;
81
- getProgressIndicator(id: string): IProgressIndicator | undefined;
82
- protected getTitleAreaDropDownAnchorAlignment(): AnchorAlignment;
83
- layout(width: number, height: number, top: number, left: number): void;
84
- setBoundarySashes?(sashes: IBoundarySashes): void;
85
- protected removeComposite(compositeId: string): boolean;
86
- dispose(): void;
87
- }
88
-
89
- export { CompositePart, type ICompositeTitleLabel };
@@ -1,108 +0,0 @@
1
- import { ActionsOrientation } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
2
- import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
3
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
4
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
5
- import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
6
- import { IColorTheme } from 'vscode/vscode/vs/platform/theme/common/themeService';
7
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
8
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
9
- import { IActivityHoverOptions, ICompositeBarColors } from './compositeBarActions.js';
10
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
11
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
12
- import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
13
- import { ICompositeDragAndDrop } from '../dnd.js';
14
- import { IAction } from 'vscode/vscode/vs/base/common/actions';
15
- import { GestureEvent } from 'vscode/vscode/vs/base/browser/touch';
16
- import { IPaneCompositePart } from './paneCompositePart.js';
17
-
18
- interface IPaneCompositeBarOptions {
19
- readonly partContainerClass: string;
20
- readonly pinnedViewContainersKey: string;
21
- readonly placeholderViewContainersKey: string;
22
- readonly viewContainersWorkspaceStateKey: string;
23
- readonly icon: boolean;
24
- readonly compact?: boolean;
25
- readonly iconSize: number;
26
- readonly recomputeSizes: boolean;
27
- readonly orientation: ActionsOrientation;
28
- readonly compositeSize: number;
29
- readonly overflowActionSize: number;
30
- readonly preventLoopNavigation?: boolean;
31
- readonly activityHoverOptions: IActivityHoverOptions;
32
- readonly fillExtraContextMenuActions: (actions: IAction[], e?: MouseEvent | GestureEvent) => void;
33
- readonly colors: (theme: IColorTheme) => ICompositeBarColors;
34
- }
35
- declare class PaneCompositeBar extends Disposable {
36
- protected readonly options: IPaneCompositeBarOptions;
37
- private readonly part;
38
- private readonly paneCompositePart;
39
- protected readonly instantiationService: IInstantiationService;
40
- private readonly storageService;
41
- private readonly extensionService;
42
- private readonly viewDescriptorService;
43
- protected readonly contextKeyService: IContextKeyService;
44
- private readonly environmentService;
45
- protected readonly layoutService: IWorkbenchLayoutService;
46
- private readonly viewContainerDisposables;
47
- private readonly location;
48
- private readonly compositeBar;
49
- readonly dndHandler: ICompositeDragAndDrop;
50
- private readonly compositeActions;
51
- private hasExtensionsRegistered;
52
- constructor(options: IPaneCompositeBarOptions, part: Parts, paneCompositePart: IPaneCompositePart, instantiationService: IInstantiationService, storageService: IStorageService, extensionService: IExtensionService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, environmentService: IWorkbenchEnvironmentService, layoutService: IWorkbenchLayoutService);
53
- private createCompositeBar;
54
- private getContextMenuActionsForComposite;
55
- private registerListeners;
56
- private onDidChangeViewContainers;
57
- private onDidChangeViewContainerLocation;
58
- private onDidChangeViewContainerVisibility;
59
- private onDidRegisterExtensions;
60
- private onDidViewContainerVisible;
61
- create(parent: HTMLElement): HTMLElement;
62
- private getCompositeActions;
63
- private onDidRegisterViewContainers;
64
- private onDidDeregisterViewContainer;
65
- private updateCompositeBarActionItem;
66
- private toCompositeBarActionItemFrom;
67
- private toCompositeBarActionItem;
68
- private showOrHideViewContainer;
69
- private shouldBeHidden;
70
- private addComposite;
71
- private hideComposite;
72
- private removeComposite;
73
- getPinnedPaneCompositeIds(): string[];
74
- getVisiblePaneCompositeIds(): string[];
75
- getContextMenuActions(): IAction[];
76
- focus(index?: number): void;
77
- layout(width: number, height: number): void;
78
- private getViewContainer;
79
- private getViewContainers;
80
- private onDidPinnedViewContainersStorageValueChange;
81
- private saveCachedViewContainers;
82
- private _cachedViewContainers;
83
- private get cachedViewContainers();
84
- private storeCachedViewContainersState;
85
- private getPinnedViewContainers;
86
- private setPinnedViewContainers;
87
- private _pinnedViewContainersValue;
88
- private get pinnedViewContainersValue();
89
- private set pinnedViewContainersValue(value);
90
- private getStoredPinnedViewContainersValue;
91
- private setStoredPinnedViewContainersValue;
92
- private getPlaceholderViewContainers;
93
- private setPlaceholderViewContainers;
94
- private _placeholderViewContainersValue;
95
- private get placeholderViewContainersValue();
96
- private set placeholderViewContainersValue(value);
97
- private getStoredPlaceholderViewContainersValue;
98
- private setStoredPlaceholderViewContainersValue;
99
- private getViewContainersWorkspaceState;
100
- private setViewContainersWorkspaceState;
101
- private _viewContainersWorkspaceStateValue;
102
- private get viewContainersWorkspaceStateValue();
103
- private set viewContainersWorkspaceStateValue(value);
104
- private getStoredViewContainersWorkspaceStateValue;
105
- private setStoredViewContainersWorkspaceStateValue;
106
- }
107
-
108
- export { type IPaneCompositeBarOptions, PaneCompositeBar };
@@ -1,138 +0,0 @@
1
- import { Event } from 'vscode/vscode/vs/base/common/event';
2
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
- import { IProgressIndicator } from 'vscode/vscode/vs/platform/progress/common/progress';
4
- import { PaneCompositeDescriptor, PaneComposite } from 'vscode/vscode/vs/workbench/browser/panecomposite';
5
- import { IPaneComposite } from 'vscode/vscode/vs/workbench/common/panecomposite';
6
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
7
- import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
8
- import { IView } from 'vscode/vscode/vs/base/browser/ui/grid/grid';
9
- import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
10
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
11
- import { CompositePart, ICompositeTitleLabel } from './compositePart.js';
12
- import { PaneCompositeBar, IPaneCompositeBarOptions } from './paneCompositeBar.js';
13
- import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
14
- import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
15
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
16
- import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
17
- import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
18
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
19
- import { IContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
20
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
21
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
22
- import { IPartOptions } from 'vscode/vscode/vs/workbench/browser/part';
23
- import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
24
- import { SubmenuAction } from 'vscode/vscode/vs/base/common/actions';
25
- import { Composite } from 'vscode/vscode/vs/workbench/browser/composite';
26
-
27
- declare enum CompositeBarPosition {
28
- TOP = 0,
29
- TITLE = 1,
30
- BOTTOM = 2
31
- }
32
- interface IPaneCompositePart extends IView {
33
- readonly partId: Parts.PANEL_PART | Parts.AUXILIARYBAR_PART | Parts.SIDEBAR_PART;
34
- readonly onDidPaneCompositeOpen: Event<IPaneComposite>;
35
- readonly onDidPaneCompositeClose: Event<IPaneComposite>;
36
- /**
37
- * Opens a viewlet with the given identifier and pass keyboard focus to it if specified.
38
- */
39
- openPaneComposite(id: string | undefined, focus?: boolean): Promise<IPaneComposite | undefined>;
40
- /**
41
- * Returns the current active viewlet if any.
42
- */
43
- getActivePaneComposite(): IPaneComposite | undefined;
44
- /**
45
- * Returns the viewlet by id.
46
- */
47
- getPaneComposite(id: string): PaneCompositeDescriptor | undefined;
48
- /**
49
- * Returns all enabled viewlets
50
- */
51
- getPaneComposites(): PaneCompositeDescriptor[];
52
- /**
53
- * Returns the progress indicator for the side bar.
54
- */
55
- getProgressIndicator(id: string): IProgressIndicator | undefined;
56
- /**
57
- * Hide the active viewlet.
58
- */
59
- hideActivePaneComposite(): void;
60
- /**
61
- * Return the last active viewlet id.
62
- */
63
- getLastActivePaneCompositeId(): string;
64
- /**
65
- * Returns id of pinned view containers following the visual order.
66
- */
67
- getPinnedPaneCompositeIds(): string[];
68
- /**
69
- * Returns id of visible view containers following the visual order.
70
- */
71
- getVisiblePaneCompositeIds(): string[];
72
- }
73
- declare abstract class AbstractPaneCompositePart extends CompositePart<PaneComposite> implements IPaneCompositePart {
74
- readonly partId: Parts.PANEL_PART | Parts.AUXILIARYBAR_PART | Parts.SIDEBAR_PART;
75
- private readonly activePaneContextKey;
76
- private paneFocusContextKey;
77
- private readonly viewDescriptorService;
78
- protected readonly contextKeyService: IContextKeyService;
79
- private readonly extensionService;
80
- protected readonly menuService: IMenuService;
81
- private static readonly MIN_COMPOSITE_BAR_WIDTH;
82
- get snap(): boolean;
83
- get onDidPaneCompositeOpen(): Event<IPaneComposite>;
84
- readonly onDidPaneCompositeClose: Event<IPaneComposite>;
85
- private readonly location;
86
- private titleContainer;
87
- private headerFooterCompositeBarContainer;
88
- protected headerFooterCompositeBarDispoables: DisposableStore;
89
- private paneCompositeBarContainer;
90
- private paneCompositeBar;
91
- private compositeBarPosition;
92
- private emptyPaneMessageElement;
93
- private globalToolBar;
94
- private readonly globalActions;
95
- private blockOpening;
96
- protected contentDimension: Dimension | undefined;
97
- constructor(partId: Parts.PANEL_PART | Parts.AUXILIARYBAR_PART | Parts.SIDEBAR_PART, partOptions: IPartOptions, activePaneCompositeSettingsKey: string, activePaneContextKey: IContextKey<string>, paneFocusContextKey: IContextKey<boolean>, nameForTelemetry: string, compositeCSSClass: string, titleForegroundColor: string | undefined, notificationService: INotificationService, storageService: IStorageService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, menuService: IMenuService);
98
- private registerListeners;
99
- private onDidOpen;
100
- private onDidClose;
101
- protected showComposite(composite: Composite): void;
102
- protected hideActiveComposite(): Composite | undefined;
103
- create(parent: HTMLElement): void;
104
- private createEmptyPaneMessage;
105
- protected createTitleArea(parent: HTMLElement): HTMLElement;
106
- protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
107
- protected updateCompositeBar(): void;
108
- protected createHeaderArea(): HTMLElement;
109
- protected createFooterArea(): HTMLElement;
110
- protected createHeaderFooterCompositeBarArea(area: HTMLElement): HTMLElement;
111
- private removeFooterHeaderArea;
112
- protected createCompositeBar(): PaneCompositeBar;
113
- protected onTitleAreaUpdate(compositeId: string): void;
114
- openPaneComposite(id?: string, focus?: boolean): Promise<PaneComposite | undefined>;
115
- private doOpenPaneComposite;
116
- getPaneComposite(id: string): PaneCompositeDescriptor | undefined;
117
- getPaneComposites(): PaneCompositeDescriptor[];
118
- getPinnedPaneCompositeIds(): string[];
119
- getVisiblePaneCompositeIds(): string[];
120
- getActivePaneComposite(): IPaneComposite | undefined;
121
- getLastActivePaneCompositeId(): string;
122
- hideActivePaneComposite(): void;
123
- protected focusComositeBar(): void;
124
- layout(width: number, height: number, top: number, left: number): void;
125
- private layoutCompositeBar;
126
- private layoutEmptyMessage;
127
- private updateGlobalToolbarActions;
128
- protected getToolbarWidth(): number;
129
- private onTitleAreaContextMenu;
130
- private onCompositeBarAreaContextMenu;
131
- private onCompositeBarContextMenu;
132
- protected getViewsSubmenuAction(): SubmenuAction | undefined;
133
- protected abstract shouldShowCompositeBar(): boolean;
134
- protected abstract getCompositeBarOptions(): IPaneCompositeBarOptions;
135
- protected abstract getCompositeBarPosition(): CompositeBarPosition;
136
- }
137
-
138
- export { AbstractPaneCompositePart, CompositeBarPosition, type IPaneCompositePart };
@@ -1,35 +0,0 @@
1
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
2
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
3
- import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
4
- import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
5
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
7
- import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
8
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
9
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
10
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
11
- import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
12
- import { AbstractPaneCompositePart, CompositeBarPosition } from '../paneCompositePart.js';
13
- import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
14
- import { IPaneCompositeBarOptions } from '../paneCompositeBar.js';
15
-
16
- declare class PanelPart extends AbstractPaneCompositePart {
17
- private commandService;
18
- readonly minimumWidth: number;
19
- readonly maximumWidth: number;
20
- readonly minimumHeight: number;
21
- readonly maximumHeight: number;
22
- get preferredHeight(): number | undefined;
23
- get preferredWidth(): number | undefined;
24
- static readonly activePanelSettingsKey = "workbench.panelpart.activepanelid";
25
- constructor(notificationService: INotificationService, storageService: IStorageService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, commandService: ICommandService, menuService: IMenuService);
26
- updateStyles(): void;
27
- protected getCompositeBarOptions(): IPaneCompositeBarOptions;
28
- private fillExtraContextMenuActions;
29
- layout(width: number, height: number, top: number, left: number): void;
30
- protected shouldShowCompositeBar(): boolean;
31
- protected getCompositeBarPosition(): CompositeBarPosition;
32
- toJSON(): object;
33
- }
34
-
35
- export { PanelPart };
@@ -1,48 +0,0 @@
1
- import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
2
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
- import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
4
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
5
- import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
6
- import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
7
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
8
- import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
9
- import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/contextview';
10
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
11
- import { LayoutPriority } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
12
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
13
- import { AbstractPaneCompositePart, CompositeBarPosition } from '../paneCompositePart.js';
14
- import { ActivityBarCompositeBar } from '../activitybar/activitybarPart.js';
15
- import { IPaneCompositeBarOptions } from '../paneCompositeBar.js';
16
- import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
17
- import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
18
-
19
- declare class SidebarPart extends AbstractPaneCompositePart {
20
- private readonly configurationService;
21
- static readonly activeViewletSettingsKey = "workbench.sidebar.activeviewletid";
22
- readonly minimumWidth: number;
23
- readonly maximumWidth: number;
24
- readonly minimumHeight: number;
25
- readonly maximumHeight: number;
26
- readonly priority: LayoutPriority;
27
- get preferredWidth(): number | undefined;
28
- private readonly acitivityBarPart;
29
- constructor(notificationService: INotificationService, storageService: IStorageService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, configurationService: IConfigurationService, menuService: IMenuService);
30
- private onDidChangeActivityBarLocation;
31
- updateStyles(): void;
32
- layout(width: number, height: number, top: number, left: number): void;
33
- protected getTitleAreaDropDownAnchorAlignment(): AnchorAlignment;
34
- protected createCompositeBar(): ActivityBarCompositeBar;
35
- protected getCompositeBarOptions(): IPaneCompositeBarOptions;
36
- protected shouldShowCompositeBar(): boolean;
37
- private shouldShowActivityBar;
38
- protected getCompositeBarPosition(): CompositeBarPosition;
39
- private rememberActivityBarVisiblePosition;
40
- private getRememberedActivityBarVisiblePosition;
41
- getPinnedPaneCompositeIds(): string[];
42
- getVisiblePaneCompositeIds(): string[];
43
- focusActivityBar(): Promise<void>;
44
- private registerActions;
45
- toJSON(): object;
46
- }
47
-
48
- export { SidebarPart };
@@ -1,28 +0,0 @@
1
- import { IActivity } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
2
- import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
3
- import { Disposable, IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { ViewContainer } from 'vscode/vscode/vs/workbench/common/views';
5
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
6
- import { Event } from 'vscode/vscode/vs/base/common/event';
7
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
-
9
- declare class ActivityService extends Disposable implements IActivityService {
10
- private readonly viewDescriptorService;
11
- private readonly instantiationService;
12
- _serviceBrand: undefined;
13
- private readonly viewActivities;
14
- private readonly _onDidChangeActivity;
15
- readonly onDidChangeActivity: Event<string | ViewContainer>;
16
- private readonly viewContainerActivities;
17
- private readonly globalActivities;
18
- constructor(viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService);
19
- showViewContainerActivity(viewContainerId: string, activity: IActivity): IDisposable;
20
- getViewContainerActivities(viewContainerId: string): IActivity[];
21
- showViewActivity(viewId: string, activity: IActivity): IDisposable;
22
- showAccountsActivity(activity: IActivity): IDisposable;
23
- showGlobalActivity(activity: IActivity): IDisposable;
24
- getActivity(id: string): IActivity[];
25
- private showActivity;
26
- }
27
-
28
- export { ActivityService };