Skip to content

Option to disable red-underlining large blocks of code #7067

Open
@k-stanislawek

Description

@k-stanislawek

Rust analyzer tends to fill the whole function or file with red, like this:
image
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions