Change link provider API to return all links for the line

Fixes #2848
This commit is contained in:
Daniel Imms
2020-05-05 18:19:57 -07:00
parent 1168c6c52f
commit d488b49fc4
4 changed files with 128 additions and 89 deletions
+4 -4
View File
@@ -1100,11 +1100,11 @@ declare module 'xterm' {
interface ILinkProvider {
/**
* Provides a link a buffer position
* @param position The position of the buffer that is currently active.
* @param callback The callback to be fired with the resulting link or
* `undefined` when ready.
* @param y The y position of the buffer that is currently active.
* @param callback The callback to be fired when ready with the resulting
* link(s) for the line or `undefined`.
*/
provideLink(position: IBufferCellPosition, callback: (link: ILink | undefined) => void): void;
provideLinks(y: number, callback: (links: ILink[] | undefined) => void): void;
}
/**