Why does textDocument/codeAction
return an empty array for Clippy diagnostic like ptr_arg
?
#19645
Unanswered
jm-observer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I’m integrating a client with rust-analyzer and trying to fetch code actions based on Clippy diagnostics.
I sent a textDocument/codeAction request with this Clippy warning:
The request includes:
diagnostics field with Clippy's ptr_arg warning
range that overlaps the warning's range
valid textDocument.uri
However, the response is just an empty array [].
Does rust-analyzer currently support returning quick fixes for Clippy lints like this?
Or is there anything I need to configure (e.g. checkOnSave.command = "clippy") or change in the request?
Thanks!
ra version: "0.3.2379-standalone (8365cf8 2025-04-13)"
complete request return json:
Beta Was this translation helpful? Give feedback.
All reactions