microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.38k stars 28.61k forks source link

Extension API: Provide the option for Code Lenses to be stacked vertically in the margin #182225

Closed StanFromTraction closed 1 year ago

StanFromTraction commented 1 year ago

Hey,

I use Copilot Lab's Brushes extension. It's amazing, but since the lenses are quite tall and keep popping up whenever you select text or a function, they cause the editor to vertically shift.

Not only is it visually jarring, but it also "breaks" code selection; you must either predict the shift or wait for it to happen to reposition your cursor and avoid selecting the wrong lines.

Since the left margin is mostly empty (with a few edge cases like the Code Actions icon), it makes sense for the lenses to appear vertically stacked in the margin. That way they don't interfere.

gjsjohnmurray commented 1 year ago

Related to #90235

roblourens commented 1 year ago

Thanks @gjsjohnmurray, I will close it as a dupe of that for some alternate rendering