x/tools/gopls: consider adding special cases for main Go tree and golang.org/x modules when linkifying issues #46245
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
@heschi pointed out to me that
gopls
has a feature of turning text likeorg/repo#123
into links to corresponding GitHub issues.The main Go repository and most (if not all) golang.org/x modules use the main Go issue tracker (https://golang.org/issues) and have many¹ existing comments that refer to Go issues as just "#123" or "issue 123".
If it's deemed okay to add special cases to that behavior for the Go project itself, this is a feature request to adjust the linkifying behavior of
gopls
to recognize when the module path is something in the standard library (juststd
,cmd
would go a long way) or has agolang.org/
prefix, and not require the "golang/go" prefix. That would help make existing comments useful and reduce the desire to be adding the otherwise-not-strictly-needed "golang/go" prefix in Go comments.¹ (Details)
A quick grep in the Go tree at commit a2c07a9:
CC @stamblerre, @heschi.
The text was updated successfully, but these errors were encountered: