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
It would be great if the templ LSP supported inlay hints.
Currently, I tend to lean toward providing an options struct as a single param to my templ components, because it can be difficult to figure out what a bunch of strings args are supposed to represent. That comes with the caveat of structs not enforcing that all params are provided, leading to unintentional defaults.
Inlay hints would allow one to efficiently parse what each arg means, without the sacrifices in explicitness that a struct requires.
Thanks for your work on this awesome lib!
The text was updated successfully, but these errors were encountered:
joerdav
changed the title
Feature Request: Inlay Hint Support
lsp: Inlay Hint Support
Mar 19, 2024
It would be great if the templ LSP supported inlay hints.
Currently, I tend to lean toward providing an options struct as a single param to my templ components, because it can be difficult to figure out what a bunch of strings args are supposed to represent. That comes with the caveat of structs not enforcing that all params are provided, leading to unintentional defaults.
Inlay hints would allow one to efficiently parse what each arg means, without the sacrifices in explicitness that a struct requires.
Thanks for your work on this awesome lib!
The text was updated successfully, but these errors were encountered: