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

Useless documentLink responses for CSS classes referenced in the template #2067

Closed
rchl opened this issue Oct 27, 2022 · 0 comments · Fixed by #4357
Closed

Useless documentLink responses for CSS classes referenced in the template #2067

rchl opened this issue Oct 27, 2022 · 0 comments · Fixed by #4357

Comments

@rchl
Copy link
Collaborator

rchl commented Oct 27, 2022

Volar provides textDocument/documentLink responses when hovering CSS classes in the <template>.

Screenshot 2022-10-27 at 10 12 40

The problem with those is that the link only references the file path (which is likely always the same file path as the one that has the reference) and doesn't include the reference to the line:column. So clicking that link does nothing.

One way to address that is to include hash fragment with row:column reference so that clicking the link goes to specific location in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant