golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
122.84k stars 17.51k forks source link

x/tools/gopls: include gopls' CodeAction kinds in the documentation, plus the default set #68791

Open adonovan opened 1 month ago

adonovan commented 1 month ago

The code action kind values (e.g. "source.doc") form part of the LSP interface to gopls. They should be mentioned in the documentation of the web-based features and transformations. Also, the docs should provide the default list, similar to how it they do for code lenses.

For context, see:

gopherbot commented 1 month ago

Change https://go.dev/cl/604818 mentions this issue: gopls/internal/settings: use CodeActionKind hierarchy