x/tools/gopls: inline multiple deprecated function calls at once #66466
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
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
golang.org/x/tools/gopls v0.15.2
go env
What did you do?
The situation was that I had a function that made many calls
to a deprecated function — let’s say it was ioutil.ReadFile:
What did you see happen?
When I place my Emacs point on ioutil.ReadFile and run
M-x eglot-code-actions
,I do see the expected code action as the only completion:
But when I select multiple ioutil.ReadFile calls and run
M-x eglot-code-actions
,I only get “Extract function” as the sole completion option:
What did you expect to see?
Would you happen to know if inlining multiple functions at once just isn’t possible in LSP?
Or is it possible in LSP, but not possible in Emacs’s eglot?
In my case, I resorted to string replacement, because it was quicker.
Ideally, the inliner would be even quicker to reach for :)
Editor and settings
Emacs 29 with builtin eglot
Logs
No response
The text was updated successfully, but these errors were encountered: