gopls version
(does not matter here)
go env
What did you do?
I use Go, vscode and templ.guide
The tool templ creates Go code from templates.
I am looking at my Go file and I use a function which was auto-generated by templ:
If I ctrl-click on page() then ...

then I get to the autogenerated Go code:

It would be great if I could get to the templ-file instead:

As a user, the experience is not great, because I would like to jump to the original source (the templ template).
Does gpls provide hooks, which templ could implement, so that ctrl-click jumps directly to the templ template?
Related issue: a-h/templ#387
gopls version
(does not matter here)
go env
What did you do?
I use Go, vscode and templ.guide
The tool
templcreates Go code from templates.I am looking at my Go file and I use a function which was auto-generated by
templ:If I ctrl-click on
page()then ...then I get to the autogenerated Go code:
It would be great if I could get to the templ-file instead:
As a user, the experience is not great, because I would like to jump to the original source (the templ template).
Does gpls provide hooks, which templ could implement, so that ctrl-click jumps directly to the templ template?
Related issue: a-h/templ#387