import { type PreferredGroup } from "../../vscode/src/vs/workbench/services/editor/common/editorService.js"; import { IEditorService } from "../../vscode/src/vs/workbench/services/editor/common/editorService.service.js"; import { type EditorInputWithOptions, type IActiveEditorChangeEvent, type IEditorCloseEvent, type IEditorControl, type IEditorPane, type IEditorWillOpenEvent, type IResourceDiffEditorInput, type ITextDiffEditorPane, type IUntitledTextResourceEditorInput, type IUntypedEditorInput, type IVisibleEditorPane } from "../../vscode/src/vs/workbench/common/editor.js"; import { EditorInput } from "../../vscode/src/vs/workbench/common/editor/editorInput.js"; import type { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput } from "../../vscode/src/vs/platform/editor/common/editor.js"; import type { ICodeEditor, IDiffEditor } from "../../vscode/src/vs/editor/browser/editorBrowser.js"; import { type IEditorGroupView } from "../../vscode/src/vs/workbench/browser/parts/editor/editor.js"; import { type IResolvedTextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService"; import { ITextModelService } from "../../vscode/src/vs/editor/common/services/resolverService.service.js"; import { type IStandaloneCodeEditor } from "../../vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js"; import { Disposable, type IDisposable, type IReference } from "../../vscode/src/vs/base/common/lifecycle.js"; import { EditorService } from "../../vscode/src/vs/workbench/services/editor/browser/editorService.js"; import { type IAuxiliaryEditorPart, type IEditorDropTargetDelegate, type IEditorPart, type IActiveEditorActions, type IEditorGroup, type IEditorWorkingSet, type IEditorGroupContextKeyProvider, type IModalEditorPart } from "../../vscode/src/vs/workbench/services/editor/common/editorGroupsService.js"; import { IEditorGroupsService } from "../../vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js"; import { IInstantiationService } from "../../vscode/src/vs/platform/instantiation/common/instantiation.js"; import { IConfigurationService } from "../../vscode/src/vs/platform/configuration/common/configuration.service.js"; import { IWorkspaceTrustRequestService } from "../../vscode/src/vs/platform/workspace/common/workspaceTrust.service.js"; import { IEditorResolverService } from "../../vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js"; import { IUriIdentityService } from "../../vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.js"; import { IWorkspaceContextService } from "../../vscode/src/vs/platform/workspace/common/workspace.service.js"; import { IFileService } from "../../vscode/src/vs/platform/files/common/files.service.js"; import { ITextEditorService } from "../../vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js"; import { IHostService } from "../../vscode/src/vs/workbench/services/host/browser/host.service.js"; import { Emitter, Event } from "../../vscode/src/vs/base/common/event.js"; import { TextResourceEditorInput } from "../../vscode/src/vs/workbench/common/editor/textResourceEditorInput.js"; import { IContextKeyService } from "../../vscode/src/vs/platform/contextkey/common/contextkey.service.js"; import { URI } from "../../vscode/src/vs/base/common/uri.js"; import type { IGroupModelChangeEvent } from "../../vscode/src/vs/workbench/common/editor/editorGroupModel.js"; import type { EditorLayoutInfo } from "../../vscode/src/vs/editor/common/config/editorOptions.js"; import type { IRectangle } from "../../vscode/src/vs/platform/window/common/window.js"; import type { ContextKeyValue } from "../../vscode/src/vs/platform/contextkey/common/contextkey.js"; import { unsupported } from "../../tools.js"; export type OpenEditor = (modelRef: IReference, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise; declare class EmptyEditorGroup implements IEditorGroup, IEditorGroupView { selectedEditors: never[]; isSelected: () => boolean; setSelection: typeof unsupported; isTransient: () => boolean; windowId: number; get groupsView(): never; notifyLabelChanged(): void; createEditorActions: typeof unsupported; onDidFocus: Event; onDidOpenEditorFail: Event; whenRestored: Promise; get titleHeight(): never; disposed: boolean; setActive: typeof unsupported; notifyIndexChanged: typeof unsupported; relayout: typeof unsupported; dispose: typeof unsupported; toJSON: typeof unsupported; preferredWidth?: number | undefined; preferredHeight?: number | undefined; get element(): never; minimumWidth: number; maximumWidth: number; minimumHeight: number; maximumHeight: number; onDidChange: Event; layout: typeof unsupported; onDidModelChange: Event; onWillDispose: Event; onDidActiveEditorChange: Event; onWillCloseEditor: Event; onDidCloseEditor: Event; onWillMoveEditor: Event; onWillOpenEditor: Event; id: number; index: number; label: string; ariaLabel: string; activeEditorPane: undefined; activeEditor: null; previewEditor: null; count: number; isEmpty: boolean; isLocked: boolean; stickyCount: number; editors: never[]; get scopedContextKeyService(): IContextKeyService; getEditors: () => never[]; findEditors: () => never[]; getEditorByIndex: () => undefined; getIndexOfEditor: typeof unsupported; openEditor: typeof unsupported; openEditors: typeof unsupported; isPinned: () => boolean; isSticky: () => boolean; isActive: () => boolean; contains: () => boolean; moveEditor: typeof unsupported; moveEditors: typeof unsupported; copyEditor: typeof unsupported; copyEditors: typeof unsupported; closeEditor: typeof unsupported; closeEditors: typeof unsupported; closeAllEditors: typeof unsupported; replaceEditors: typeof unsupported; pinEditor: () => void; stickEditor: () => void; unstickEditor: () => void; lock: () => void; focus(): void; isFirst: typeof unsupported; isLast: typeof unsupported; } export declare const fakeActiveGroup: EmptyEditorGroup; export declare function wrapOpenEditor(textModelService: ITextModelService, defaultBehavior: IEditorService["openEditor"], fallbackBahavior?: OpenEditor): IEditorService["openEditor"]; export declare class MonacoEditorService extends EditorService { private _isEditorPartVisible; constructor(_openEditorFallback: OpenEditor | undefined, _isEditorPartVisible: () => boolean, _editorGroupService: IEditorGroupsService, instantiationService: IInstantiationService, fileService: IFileService, configurationService: IConfigurationService, contextService: IWorkspaceContextService, uriIdentityService: IUriIdentityService, editorResolverService: IEditorResolverService, workspaceTrustRequestService: IWorkspaceTrustRequestService, hostService: IHostService, textEditorService: ITextEditorService, textModelService: ITextModelService); get activeTextEditorControl(): ICodeEditor | IDiffEditor | undefined; openEditor(editor: EditorInput, options?: IEditorOptions, group?: PreferredGroup): Promise; openEditor(editor: IUntypedEditorInput, group?: PreferredGroup): Promise; openEditor(editor: IResourceEditorInput, group?: PreferredGroup): Promise; openEditor(editor: ITextResourceEditorInput | IUntitledTextResourceEditorInput, group?: PreferredGroup): Promise; openEditor(editor: IResourceDiffEditorInput, group?: PreferredGroup): Promise; openEditor(editor: EditorInput | IUntypedEditorInput, optionsOrPreferredGroup?: IEditorOptions | PreferredGroup, preferredGroup?: PreferredGroup): Promise; } declare class StandaloneEditorPane implements IVisibleEditorPane { readonly editor: ICodeEditor; input: TextResourceEditorInput; group: IEditorGroup; constructor(editor: ICodeEditor, input: TextResourceEditorInput, group: IEditorGroup); onDidChangeControl: Event; options: undefined; minimumWidth: number; maximumWidth: number; minimumHeight: number; maximumHeight: number; onDidChangeSizeConstraints: Event; scopedContextKeyService: undefined; getControl(): IEditorControl | undefined; getViewState(): object | undefined; isVisible(): boolean; onDidFocus: Event; onDidBlur: Event; hasFocus(): boolean; getId(): string; getTitle(): string | undefined; focus(): void; } declare class StandaloneEditorGroup extends Disposable implements IEditorGroup, IEditorGroupView { editor: IStandaloneCodeEditor; private openEditorFallback; scopedContextKeyService: IContextKeyService; editorService: IEditorService; private textModelService; private static idCounter; private pane; active: boolean; constructor(editor: IStandaloneCodeEditor, openEditorFallback: OpenEditor | undefined, instantiationService: IInstantiationService, scopedContextKeyService: IContextKeyService, editorService: IEditorService, textModelService: ITextModelService); selectedEditors: never[]; isSelected: () => boolean; setSelection: typeof unsupported; isTransient: () => boolean; windowId: number; get groupsView(): never; notifyLabelChanged(): void; createEditorActions(): IActiveEditorActions; onDidFocus: Event; onDidOpenEditorFail: Event; whenRestored: Promise; get titleHeight(): never; disposed: boolean; setActive(isActive: boolean): void; notifyIndexChanged: typeof unsupported; relayout: typeof unsupported; toJSON: typeof unsupported; get element(): HTMLElement; minimumWidth: number; maximumWidth: number; minimumHeight: number; maximumHeight: number; onDidChange: Event; layout: () => void; _onDidModelChange: Emitter; onDidModelChange: Event; onWillDispose: (listener: () => void) => IDisposable; _onDidActiveEditorChange: Emitter; onDidActiveEditorChange: Event; onWillCloseEditor: Event; _onDidCloseEditor: Emitter; onDidCloseEditor: Event; onWillMoveEditor: Event; _onWillOpenEditor: Emitter; onWillOpenEditor: Event; readonly id: number; index: number; label: string; ariaLabel: string; get activeEditorPane(): StandaloneEditorPane | undefined; get activeEditor(): TextResourceEditorInput | null; previewEditor: null; get count(): 0 | 1; get isEmpty(): boolean; isLocked: boolean; stickyCount: number; get editors(): TextResourceEditorInput[]; getEditors: () => TextResourceEditorInput[]; findEditors: (resource: URI) => TextResourceEditorInput[]; getEditorByIndex: (index: number) => TextResourceEditorInput | undefined; getIndexOfEditor: (editorInput: EditorInput) => 0 | -1; openEditor: (editor: EditorInput, options?: IEditorOptions) => Promise; openEditors: (editors: EditorInputWithOptions[]) => Promise; isPinned: () => boolean; isSticky: () => boolean; isActive: () => boolean; contains: (candidate: EditorInput | IUntypedEditorInput) => boolean; moveEditor: typeof unsupported; moveEditors: typeof unsupported; copyEditor: typeof unsupported; copyEditors: typeof unsupported; closeEditor: typeof unsupported; closeEditors: typeof unsupported; closeAllEditors: typeof unsupported; replaceEditors: typeof unsupported; pinEditor: () => void; stickEditor: () => void; unstickEditor: () => void; lock: () => void; focus(): void; isFirst: typeof unsupported; isLast: typeof unsupported; } export declare class MonacoDelegateEditorGroupsService extends Disposable implements IEditorGroupsService { protected delegate: D; private openEditorFallback; private instantiationService; readonly _serviceBrand: undefined; additionalGroups: StandaloneEditorGroup[]; activeGroupOverride: StandaloneEditorGroup | undefined; constructor(delegate: D, emptyDelegate: boolean, openEditorFallback: OpenEditor | undefined, instantiationService: IInstantiationService); createModalEditorPart: typeof unsupported; activeModalEditorPart: IModalEditorPart | undefined; getScopedInstantiationService(): IInstantiationService; registerContextKeyProvider(provider: IEditorGroupContextKeyProvider): IDisposable; saveWorkingSet(name: string): IEditorWorkingSet; getWorkingSets(): IEditorWorkingSet[]; applyWorkingSet(workingSet: IEditorWorkingSet | "empty"): Promise; deleteWorkingSet(workingSet: IEditorWorkingSet): void; get isReady(): IEditorGroupsService["isReady"]; get whenReady(): IEditorGroupsService["whenReady"]; get whenRestored(): IEditorGroupsService["whenRestored"]; get hasRestorableState(): IEditorGroupsService["hasRestorableState"]; onDidCreateAuxiliaryEditorPart: Event; get parts(): IEditorGroupsService["parts"]; createAuxiliaryEditorPart(options?: { bounds?: Partial | undefined; } | undefined): Promise; get mainPart(): IEditorGroupsService["mainPart"]; onDidChangeGroupMaximized: Event; getPart(group: number | IEditorGroup): IEditorPart; getPart(container: unknown): IEditorPart | undefined; toggleMaximizeGroup(group?: number | IEditorGroup | undefined): void; toggleExpandGroup(group?: number | IEditorGroup | undefined): void; createEditorDropTarget(container: unknown, delegate: IEditorDropTargetDelegate): IDisposable; get groups(): IEditorGroup[]; get activeGroup(): IEditorGroup; _onDidChangeActiveGroup: Emitter; onDidChangeActiveGroup: Event; _onDidAddGroup: Emitter; onDidAddGroup: Event; _onDidRemoveGroup: Emitter; onDidRemoveGroup: Event; onDidMoveGroup: Event; onDidActivateGroup: Event; onDidChangeGroupIndex: Event; onDidChangeGroupLocked: Event; get sideGroup(): IEditorGroupsService["sideGroup"]; get count(): IEditorGroupsService["count"]; get orientation(): IEditorGroupsService["orientation"]; get partOptions(): IEditorGroupsService["partOptions"]; getLayout: IEditorGroupsService["getLayout"]; getGroups: IEditorGroupsService["getGroups"]; getGroup: IEditorGroupsService["getGroup"]; activateGroup: IEditorGroupsService["activateGroup"]; getSize: IEditorGroupsService["getSize"]; setSize: IEditorGroupsService["setSize"]; arrangeGroups: IEditorGroupsService["arrangeGroups"]; applyLayout: IEditorGroupsService["applyLayout"]; setGroupOrientation: IEditorGroupsService["setGroupOrientation"]; findGroup: IEditorGroupsService["findGroup"]; addGroup: IEditorGroupsService["addGroup"]; removeGroup: IEditorGroupsService["removeGroup"]; moveGroup: IEditorGroupsService["moveGroup"]; mergeGroup: IEditorGroupsService["mergeGroup"]; mergeAllGroups: IEditorGroupsService["mergeAllGroups"]; copyGroup: IEditorGroupsService["copyGroup"]; onDidChangeEditorPartOptions: Event; enforcePartOptions: IEditorGroupsService["enforcePartOptions"]; } export {};