Move options to addon and avoid recreating options

This commit is contained in:
Daniel Imms
2021-02-03 05:28:23 -08:00
parent eec804dd7c
commit bd6676d3b6
4 changed files with 36 additions and 28 deletions
-17
View File
@@ -352,23 +352,6 @@ declare module 'xterm' {
willLinkActivate?: (event: MouseEvent, uri: string) => boolean;
}
/**
* An object containing options for a link provider.
*/
export interface ILinkProviderOptions {
/**
* A callback that fires when the mouse hovers over a link for a period of
* time (defined by {@link ITerminalOptions.linkTooltipHoverDuration}).
*/
hover?(event: MouseEvent, text: string, location: IViewportRange): void;
/**
* A callback that fires when the mouse leaves a link. Note that this can
* happen even when tooltipCallback hasn't fired for the link yet.
*/
leave?(event: MouseEvent, text: string): void;
}
/**
* An object that can be disposed via a dispose function.
*/