x/tools/gopls: replace refactoring code actions Command with Edits and codeAction/resolve #64510
Labels
gopls
Issues related to the Go language server, gopls.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
codeAction/resolve was introduced to LSP in 3.16. This allows code action requests to omit
Edits
for a code action and compute them when necessary.Currently, gopls implements this lazy computation by passing a command to the codeAction. However, if the client supports it we can use
codeAction/resolve
instead. This will enable code action previews in VS Code.Client support is registered through textDocument.codeAction.resolveSupport:
gopls already has ResolveCodeAction
The text was updated successfully, but these errors were encountered: