mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
Remove duplicate/deprecated IHoverAction
This commit is contained in:
parent
bfb5b774c6
commit
9906083b79
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue