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
@@ -3,7 +3,12 @@
* @license MIT
*/
import { ILinkProvider, ILink, Terminal, IViewportRange, ILinkProviderOptions } from 'xterm';
import { ILinkProvider, ILink, Terminal, IViewportRange } from 'xterm';
interface ILinkProviderOptions {
hover?(event: MouseEvent, text: string, location: IViewportRange): void;
leave?(event: MouseEvent, text: string): void;
}
export class WebLinkProvider implements ILinkProvider {