Support Basic Inlay Hints
Modern IDEs use inlay hints to help user keep track of params, variable types and scopes, etc. For example, in IDEA, you will notice inlay hints like these:
- Inlay hints in line:
- Inlay hints above line:
Also, you can interact with inlay hints by click or long-press them.
And basically, all inlay hints should be measurable. But as editor is a View but not ViewGroup, we will get limited functionality of these inlay hints.
Hello @Rosemoe i would like to help to implement this feature , Did anyone started working on these, Or should we start from scratch?
If i understand right, it's hard to implement because inlay hints need to change position of text based on it's position?
Did anyone started working on these, Or should we start from scratch?
It's not started yet.
If i understand right, it's hard to implement because inlay hints need to change position of text based on it's position?
Yes, inlay hints affect line positions and columns positions. And these inlay hints should also be mesaured. The editor actually becomes a simplified view group.
We now support basic inline inlay hints. Code lens will be implemented in future.