rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.12k stars 1.58k forks source link

Diagnostic appears only inside function #12617

Open AlePon123 opened 2 years ago

AlePon123 commented 2 years ago

rust-analyzer version:2022-06-20

rustc version: 1.61.0

relevant settings:nothing changed

Errors and other diagnostic features appears only 'outside function' like image

But if i delete 'qwewqeq' erros doesn't apeears image

jonas-schievink commented 2 years ago

Do you have checkOnSave enabled? We don't emit our own diagnostics in that code example (it is syntactically valid).

AlePon123 commented 2 years ago

Do you have checkOnSave enabled? We don't emit our own diagnostics in that code example (it is syntactically valid).

Yes i have

AlePon123 commented 2 years ago

I remove all rust analyzer settings from vs code but problem still dont doesn't leave