diff --git a/gopls/doc/features/transformation.md b/gopls/doc/features/transformation.md index 061889227..579c14818 100644 --- a/gopls/doc/features/transformation.md +++ b/gopls/doc/features/transformation.md @@ -80,6 +80,18 @@ for the current selection. recognized by gopls that enables corresponding logic in the server's ApplyFix command handler. --> + + Caveats: - Many of gopls code transformations are limited by Go's syntax tree representation, which currently records comments not in the tree diff --git a/gopls/internal/settings/codeactionkind.go b/gopls/internal/settings/codeactionkind.go index dea2e6997..7cc132292 100644 --- a/gopls/internal/settings/codeactionkind.go +++ b/gopls/internal/settings/codeactionkind.go @@ -80,6 +80,6 @@ const ( GoAssembly protocol.CodeActionKind = "source.assembly" GoDoc protocol.CodeActionKind = "source.doc" GoFreeSymbols protocol.CodeActionKind = "source.freesymbols" - GoTest protocol.CodeActionKind = "goTest" // TODO(adonovan): rename "source.test" + GoTest protocol.CodeActionKind = "source.test" GoplsDocFeatures protocol.CodeActionKind = "gopls.doc.features" )