You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Core contributions which are trying to render overlay widgets properly can currently rely only the line offsets, but those disregard decoration offsets.
Meaning that when decorations which contain text are rendered after the current content (e.g. via the inlineSuggest, but also other AI contributions), overlay widgets struggle to correctly render without overlaying the decoration (which might contain text that the user wants to read).
Value statement
Allowing to get the decoration offset, allows to easily render any new overlay/absolutely positioned widgets, without hiding any interesting suggestions/decorations. This would allow for more flexibility with novel UX/UI interactions.
Proposal
In the same way as the editor currently allows to retrieve an offset for a specific column, allow to get an offset for a decoration.
The decorations can be accessed in the visible line and can provide positional information, which can then be used to correctly calculate the horizontal position in the editor.
The returned value would be left: number for the right most (last) decoration, starting at the provided column and containing expected className.
The text was updated successfully, but these errors were encountered:
Problem statement
Core contributions which are trying to render overlay widgets properly can currently rely only the line offsets, but those disregard decoration offsets.
Meaning that when decorations which contain text are rendered after the current content (e.g. via the inlineSuggest, but also other AI contributions), overlay widgets struggle to correctly render without overlaying the decoration (which might contain text that the user wants to read).
Value statement
Allowing to get the decoration offset, allows to easily render any new overlay/absolutely positioned widgets, without hiding any interesting suggestions/decorations. This would allow for more flexibility with novel UX/UI interactions.
Proposal
In the same way as the editor currently allows to retrieve an offset for a specific column, allow to get an offset for a decoration.
The decorations can be accessed in the
visible line
and can provide positional information, which can then be used to correctly calculate the horizontal position in the editor.The returned value would be
left: number
for the right most (last) decoration, starting at the provided column and containing expected className.The text was updated successfully, but these errors were encountered: