Skip to content

x/tools/gopls: inconsistent semantic token types for type parameters #56529

@rink-grey

Description

@rink-grey

As example, the function has a generic typeParameter "T" and a parameter "target" .
iShot2022-11-02 23 51 27
Inside function, it check "target" as typeParameter that is error. Obviously "target" is a parameter.
iShot2022-11-02 23 51 54
iShot2022-11-02 23 52 13
And in the generic list, it check "T" as parameter, but in the parameter list, it check "T" as typeParameter. That is confusion
iShot2022-11-02 23 52 26
iShot2022-11-02 23 52 43

And my setting of gopls.ui.semanticTokens is turning on.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions