Replies: 1 comment
-
We don't control code actions. They are handled by the language server. We just display and execute whatever the LSP sends. You need to report this to the go repo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When running an "extract function" code action on a chunk of Golang code, the comments are not moved to the extracted function but stay in their original place. I am not sure if this is the helix bug or
gopls
bug. I don't have any extra go-specific configuration inlanguages.toml
.Reproduction Steps
Start with this code:
Select all of the contents of
main()
, press<space>a
, choose "Extract function". I get the following as the result:Notice that the comments
// set ...
are not moved to the extracted function.Helix log
No response
Platform
Arch Linux, x86-64
Terminal Emulator
alacritty 0.13.1
Installation Method
Arch Linux repositories
Helix Version
23.10
Beta Was this translation helpful? Give feedback.
All reactions