Skip to content
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

InlayHint for complete lines / multiline #1821

Open
cdietrich opened this issue Sep 28, 2023 · 7 comments
Open

InlayHint for complete lines / multiline #1821

cdietrich opened this issue Sep 28, 2023 · 7 comments
Labels
feature-request Request for new features or functionality inlay hint
Milestone

Comments

@cdietrich
Copy link

cdietrich commented Sep 28, 2023

Hi, is there a way to achive a multipline inlay hint like thing for a complete line

e.g. something like that

|many nice stuff
about x that does not fit into one line|
var x = whatever

the thing between the || is the inlay hint like thing

@cdietrich
Copy link
Author

as a workaround i display a single hint and put the content to a tooltip

Bildschirmfoto 2023-09-28 um 14 53 14
in this case it would be nice to allow the inlay to be at least on its own line
(similar to code lenses or as eclipse line header code minings allow it)

@puremourning
Copy link

I would strongly oppose this as an abuse of the purpose of inlay hints. This is what hover is for.

@cdietrich
Copy link
Author

we already use hovers to show documentation.
if multiline inlay hints are a problem maybe we can have something like eclipses line header codeminings

Bildschirmfoto 2023-09-29 um 10 58 30

@mickaelistria
Copy link

Isn't it exactly what "codelens" provide?

@cdietrich
Copy link
Author

a codelens forces you to have a command and does not have a tooltip (directly)

@r3m0t
Copy link

r3m0t commented Sep 30, 2023

Can you give an example of what you would use it for- maybe with a fake screenshot

@cdietrich
Copy link
Author

i want to display an ast of our language (DSL)
right now this looks like

Bildschirmfoto 2023-10-05 um 07 45 16

i want it to look like
Bildschirmfoto 2023-10-05 um 07 45 16_fake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality inlay hint
Projects
None yet
Development

No branches or pull requests

6 participants
@cdietrich @mickaelistria @r3m0t @dbaeumer @puremourning and others