3 ms·
No idea how to do this in a VSCode extension, but you could place a full-screen <canvas> over the whole editor with pointer-events: none. Then, you could use of
by tkzed49 3y ago
No idea how to do this in a VSCode extension, but you could place a full-screen <canvas> over the whole editor with pointer-events: none. Then, you could use offsetLeft/Top or getBoundingClientRect() on relevant text elements to figure out where to draw lines on the canvas.