Open max-sixty opened 2 years ago
This is unfortunately unfixable for quickfixes that are a result of flycheck (cargo check
), since it is basically going off of a cached version of the diagnostics prior to save.
I wonder if we can disable the quick-fixes if you modify the file flycheck has run to avoid confusion here.
I wonder if we can disable the quick-fixes if you modify the file flycheck has run to avoid confusion here.
That's also annoying though since if you do it in the right order, you can actually apply multiple fixes without saving in between. I guess we could disable quick-fixes where the touched code doesn't match anymore.
(Thank you for the excellent extension!)
rust-analyzer version: rust-analyzer version: 0.3.1285-standalone (45ec315e0 2022-11-11)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
I have the following code:
There is an option to apply a quick fix to each block. I select it:
...and I successfully get the following code:
But — then I go to apply the quick fix for the second block — and it mangles the lines, removing the
let fix_right
text:Saving the file between the two actions resolves the issue.
Thanks!