UNPKG

sussudio

Version:

An unofficial VS Code Internal API

33 lines (32 loc) 1.29 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { DomScrollableElement } from "../scrollbar/scrollableElement.mjs"; import { Disposable } from "../../../common/lifecycle.mjs"; import "../../../../css!./hover.mjs"; export declare const enum HoverPosition { LEFT = 0, RIGHT = 1, BELOW = 2, ABOVE = 3 } export declare class HoverWidget extends Disposable { readonly containerDomNode: HTMLElement; readonly contentsDomNode: HTMLElement; readonly scrollbar: DomScrollableElement; constructor(); onContentsChanged(): void; } export declare class HoverAction extends Disposable { static render(parent: HTMLElement, actionOptions: { label: string; iconClass?: string; run: (target: HTMLElement) => void; commandId: string; }, keybindingLabel: string | null): HoverAction; private readonly actionContainer; private readonly action; private constructor(); setEnabled(enabled: boolean): void; }