x/tools/gopls: only use import text as range for textDocument/documentLink responses #35565
Labels
Documentation
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Please answer these questions before submitting your issue. Thanks!
What did you do?
Have import statements, a mix of normal imports, aliased imports,
_
imports.What did you expect to see?
Links which span the package path.
What did you see instead?
The links span the entire import statement, and not just the link. See:
Note how the package aliases are also underlined, and even the
_
imported package. Including the quotes also feels wrong. I would personally prefer them to look like:Which is just a change to:
(But I'm not sure if this is the correct way to get the span of a literal, just a PoC.)
Build info
Go info
The text was updated successfully, but these errors were encountered: