sora-editor icon indicating copy to clipboard operation
sora-editor copied to clipboard

Support Basic Inlay Hints

Open Rosemoe opened this issue 3 years ago • 2 comments

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: image
  • Inlay hints above line: image

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.

Rosemoe avatar Dec 31 '22 04:12 Rosemoe

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?

MohammadKHC avatar Nov 11 '24 10:11 MohammadKHC

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.

Rosemoe avatar Nov 13 '24 09:11 Rosemoe

We now support basic inline inlay hints. Code lens will be implemented in future.

Rosemoe avatar Nov 08 '25 04:11 Rosemoe