Allow embedders to customize link decorations independently

See microsoft/vscode#95631
This commit is contained in:
Daniel Imms
2020-04-19 04:07:22 -07:00
parent 67fde3e941
commit 2ce435f98d
3 changed files with 63 additions and 24 deletions
+6 -1
View File
@@ -172,12 +172,17 @@ interface ILinkProvider {
interface ILink {
range: IBufferRange;
text: string;
hideDecorations?: boolean;
decorations?: ILinkDecorations;
activate(event: MouseEvent, text: string): void;
hover?(event: MouseEvent, text: string): void;
leave?(event: MouseEvent, text: string): void;
}
interface ILinkDecorations {
pointerCursor: boolean;
underline: boolean;
}
interface IBufferRange {
start: IBufferCellPosition;
end: IBufferCellPosition;