Replies: 1 comment
-
|
It should be possible. If it's not working, it's likely a rust-analyzer issue. See also: |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi and thanks for rustaceanvim!
I'm wondering if extracting code blocks into a function currently works in general. Currently, I get "No code actions available" when selecting a few lines and running
:RustLsp codeActionor:lua vim.lsp.buf.code_action().For example, trying to extract the visually selected for loop in this program with
:RustLsp codeActionresults in "No code actions available":Other code actions do work: Placing the cursor on the
inof the loop and calling:RustLsp codeActionproduces "Replace this for loop withIterator::for_each".:RustLsp logFileshows no output after visually selecting lines and calling:RustLsp codeAction.Output of
:checkhealth rustaceanvim:Beta Was this translation helpful? Give feedback.
All reactions