Remove duplicate/deprecated IHoverAction

This commit is contained in:
Daniel Imms 2024-04-03 06:14:15 -07:00
parent bfb5b774c6
commit 9906083b79
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -13,7 +13,7 @@ import { stripIcons } from 'vs/base/common/iconLabels';
import { DisposableStore, IDisposable } from 'vs/base/common/lifecycle';
import { isFunction, isString } from 'vs/base/common/types';
import { localize } from 'vs/nls';
import type { IHoverWidget } from 'vs/base/browser/ui/hover/hover';
import type { IHoverAction, IHoverWidget } from 'vs/base/browser/ui/hover/hover';
export interface ITooltipMarkdownString {
markdown: IMarkdownString | string | undefined | ((token: CancellationToken) => Promise<IMarkdownString | string | undefined>);
@ -35,17 +35,6 @@ type IHoverContent = string | ITooltipMarkdownString | HTMLElement | undefined;
type IHoverContentOrFactory = IHoverContent | (() => IHoverContent);
type IResolvedHoverContent = IMarkdownString | string | HTMLElement | undefined;
/**
* Copied from src\vs\workbench\services\hover\browser\hover.ts
* @deprecated Use IHoverService
*/
interface IHoverAction {
label: string;
commandId: string;
iconClass?: string;
run(target: HTMLElement): void;
}
export interface IUpdatableHoverOptions {
actions?: IHoverAction[];
linkHandler?(url: string): void;