-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Independent Decoration render support #101085
Comments
related issue |
This would generally be useful for all languages where types can be inferred from C++ to Scala to OCaml. |
Hey folks. There are many ways to do this one as far as I know:
But I'm not sure which one is better. Would you give some suggestions ? That would be very helpful to me. /cc: @jrieken |
Yeah, closing as dupe of #16221. We do have a good implementation and API on its way |
The current decoration must be attached to a renderable token,
we use
rust-analyzer
as a example,it's inline hint or inline parameter, as you can see, when you move your cursor to the
)
,you actually select the
:Error )
, though the:Error
is a decoration.using this hack method to implement the
inline hint
likeintellij
has some drawbackserver has a type:
TcpListener
, if i want to change the variable name , you will see the width of your cursor changes from 12px to 100px.(we assume the width). it's really weird.inline hint
common implemation method, it's not so pretty.Feature Request
Is it possible to add an option to have the decoration rendered separately from the original token, whether or not the rendering still relies on certain conditions of the original token.
If this new feature is available, plugin developers can implement the same
inline hint
as intellij。The text was updated successfully, but these errors were encountered: