-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cursor jumps to component body instead of definition on first jump #1
Comments
Could you provide a repo I could pull down to test against? Thanks. |
Oh I see. I only tested this using go files not from templ. I'll look at this later today. |
Of course, here you go: https://github.com/gabrielvincent/templ-goto-definition-initial-gtd-bug How to reproduce the error:
How to get gtd action to work from the start:
The problem only occurs when the destination buffer hasn't been opened yet. |
This looks exactly like a-h/templ#893 which supposedly was fixed in the last release of templ, but I am getting the same error you are in .10.1 and nightly. This is an issue with templ LSP it seems so I will open an issue with templ |
This should be fixed when templ makes a new release. See: a-h/templ#911 |
@gabrielvincent can you see if this is working with latest templ version? |
The very first jump lands on the component body rather than on its definition, but subsequent jumps work as intended. See how when I go to definition from a
@components.Layout
instance, it first lands on the<body>
tag the first time.templ-goto.mov
The text was updated successfully, but these errors were encountered: