Option to disable red-underlining large blocks of code #7067
Labels
A-diagnostics
diagnostics / error reporting
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
Rust analyzer tends to fill the whole function or file with red, like this:

This is annoying, I tend to disable the plugin for a moment when that happens.
It happens when I'm in the middle of writing a new function, or refactoring a function, and the error is "wrong return type". Sometimes I satisfy it by providing a return statement first, even mocked one, but it doesn't work if I want multiple branches with different returns.
Another use-case is when opening/closing brackets don't match, and red color makes it more difficult to find what's wrong.
The text was updated successfully, but these errors were encountered: