-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting check.workspace to false still emits diagnostics from all members the first time they are seen #17126
Comments
That works as expected in that the initial check (as well as any check invoked when not in a rust file) will trigger a workspace check. I guess we could change the setting to try-state bool, |
Wait, does it mean cargo-check on workspace is run during initialization and other scenarios on purpose, so diagnostics throughout workspace are reported?
I'm in favor of that. If
Well, keep things simple. Startup is redundant to me for the reason above... My two cents... |
It's probably less obvious, but |
Might be another solution: document the behavior with no code changed? |
rust-analyzer version: v0.3.1906
rustc version: rustc 1.79.0-nightly (1684a753d 2024-04-01)
editor or extension: I've tested this on VSCode, NeoVim, Helix.
relevant settings:
check.workspace = false
code snippet to reproduce:
#16510 brings check.workspace setting, it works well except the first time RA starts.
The reproducing steps are:
check.workspace
to falseFound in https://users.rust-lang.org/t/rust-analyzer-cargo-workspaces-and-members-in-helix-editor/110284/8
The text was updated successfully, but these errors were encountered: