import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom"; import { IAction, ActionRunner } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions"; import { ResolvedKeybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings"; import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service"; import { Themable } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService"; import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service"; import { DraggedEditorGroupIdentifier, DraggedEditorIdentifier } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/dnd"; import { IEditorGroupsView, IEditorGroupView, IEditorPartsView, IInternalEditorOpenOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editor"; import { IEditorCommandsContext, IEditorPartOptions, IToolbarActions, GroupIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor"; import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput"; import { LocalSelectionTransfer } from "@codingame/monaco-vscode-api/vscode/vs/platform/dnd/browser/dnd"; import { DraggedTreeItemsIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/treeViewsDnd"; import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service"; import { IEditorTitleControlDimensions } from "@codingame/monaco-vscode-09f99a3e-bf90-51d4-ab34-acea412359d2-common/vscode/vs/workbench/browser/parts/editor/editorTitleControl"; import { IReadonlyEditorGroupModel } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/common/editor/editorGroupModel"; import { IAuxiliaryEditorPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; import { IManagedHoverTooltipMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover"; export declare class EditorCommandsContextActionRunner extends ActionRunner { private context; constructor(context: IEditorCommandsContext); run(action: IAction, context?: { preserveFocus?: boolean; }): Promise; } export interface IEditorTabsControl extends IDisposable { updateOptions(oldOptions: IEditorPartOptions, newOptions: IEditorPartOptions): void; openEditor(editor: EditorInput, options?: IInternalEditorOpenOptions): boolean; openEditors(editors: EditorInput[]): boolean; beforeCloseEditor(editor: EditorInput): void; closeEditor(editor: EditorInput): void; closeEditors(editors: EditorInput[]): void; moveEditor(editor: EditorInput, fromIndex: number, targetIndex: number, stickyStateChange: boolean): void; pinEditor(editor: EditorInput): void; stickEditor(editor: EditorInput): void; unstickEditor(editor: EditorInput): void; setActive(isActive: boolean): void; updateEditorSelections(): void; updateEditorLabel(editor: EditorInput): void; updateEditorDirty(editor: EditorInput): void; layout(dimensions: IEditorTitleControlDimensions): Dimension; getHeight(): number; } export declare abstract class EditorTabsControl extends Themable implements IEditorTabsControl { protected readonly parent: HTMLElement; protected readonly editorPartsView: IEditorPartsView; protected readonly groupsView: IEditorGroupsView; protected readonly groupView: IEditorGroupView; protected readonly tabsModel: IReadonlyEditorGroupModel; protected readonly contextMenuService: IContextMenuService; protected instantiationService: IInstantiationService; protected readonly contextKeyService: IContextKeyService; private readonly keybindingService; private readonly notificationService; protected quickInputService: IQuickInputService; private readonly editorResolverService; private readonly hostService; protected readonly editorTransfer: LocalSelectionTransfer; protected readonly groupTransfer: LocalSelectionTransfer; protected readonly treeItemsTransfer: LocalSelectionTransfer; private static readonly EDITOR_TAB_HEIGHT; protected editorActionsToolbarContainer: HTMLElement | undefined; private editorActionsToolbar; private readonly editorActionsToolbarDisposables; private readonly editorActionsDisposables; private readonly contextMenuContextKeyService; private resourceContext; private editorPinnedContext; private editorIsFirstContext; private editorIsLastContext; private editorStickyContext; private editorAvailableEditorIds; private editorCanSplitInGroupContext; private sideBySideEditorContext; private groupLockedContext; private renderDropdownAsChildElement; constructor(parent: HTMLElement, editorPartsView: IEditorPartsView, groupsView: IEditorGroupsView, groupView: IEditorGroupView, tabsModel: IReadonlyEditorGroupModel, contextMenuService: IContextMenuService, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, notificationService: INotificationService, quickInputService: IQuickInputService, themeService: IThemeService, editorResolverService: IEditorResolverService, hostService: IHostService); protected create(parent: HTMLElement): HTMLElement; private get editorActionsEnabled(); protected createEditorActionsToolBar(parent: HTMLElement, classes: string[]): void; private handleEditorActionToolBarVisibility; private doCreateEditorActionsToolBar; private actionViewItemProvider; protected updateEditorActionsToolbar(): void; protected abstract prepareEditorActions(editorActions: IToolbarActions): IToolbarActions; private getEditorPaneAwareContextKeyService; protected clearEditorActionsToolbar(): void; protected onGroupDragStart(e: DragEvent, element: HTMLElement): boolean; protected onGroupDragEnd(e: DragEvent, previousDragEvent: DragEvent | undefined, element: HTMLElement, isNewWindowOperation: boolean): Promise; protected maybeCreateAuxiliaryEditorPartAt(e: DragEvent, offsetElement: HTMLElement): Promise; protected isNewWindowOperation(e: DragEvent): boolean; protected isMoveOperation(e: DragEvent, sourceGroup: GroupIdentifier, sourceEditor?: EditorInput): boolean; protected doFillResourceDataTransfers(editors: readonly EditorInput[], e: DragEvent, disableStandardTransfer: boolean): boolean; protected onTabContextMenu(editor: EditorInput, e: Event, node: HTMLElement): void; protected getKeybinding(action: IAction): ResolvedKeybinding | undefined; protected getKeybindingLabel(action: IAction): string | undefined; protected get tabHeight(): 35 | 22; protected getHoverTitle(editor: EditorInput): string | IManagedHoverTooltipMarkdownString; protected updateTabHeight(): void; updateOptions(oldOptions: IEditorPartOptions, newOptions: IEditorPartOptions): void; abstract openEditor(editor: EditorInput): boolean; abstract openEditors(editors: EditorInput[]): boolean; abstract beforeCloseEditor(editor: EditorInput): void; abstract closeEditor(editor: EditorInput): void; abstract closeEditors(editors: EditorInput[]): void; abstract moveEditor(editor: EditorInput, fromIndex: number, targetIndex: number): void; abstract pinEditor(editor: EditorInput): void; abstract stickEditor(editor: EditorInput): void; abstract unstickEditor(editor: EditorInput): void; abstract setActive(isActive: boolean): void; abstract updateEditorSelections(): void; abstract updateEditorLabel(editor: EditorInput): void; abstract updateEditorDirty(editor: EditorInput): void; abstract layout(dimensions: IEditorTitleControlDimensions): Dimension; abstract getHeight(): number; }