x/tools/gopls: feature: support SnippetTextEdit in codeactions #70432
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
.
go env
.
What did you do?
Jdtls's preview version has this feature, and lsp has snippetTextEdit merged
What did you see happen?
iShot_2024-11-19_06.57.51.mp4
What did you expect to see?
With snippets, for extract function/method/variable, we can change function/variable name in two places at the same time; for fill struct, all the right side of property assignment can be a snippet node; and for generate missing function/method, we can select the panic("unimplemented") so user can replace it right away.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: