Open ivan0051 opened 3 years ago
Sorry, I will leave this open and let you decide since I don't know how the language server exactly functions, but I followed another issue regarding the same thing at another link: https://github.com/rust-lang/vscode-rust/issues/686 And one of the pieces of advice was to reopen Visual Studio. It does fix the issue. However, almost everything else adapts without requiring this. It's worth noting even if you would rather consider this closed.
Hovering over red-underlined error in use statement shows "unresolved import/use of undeclared crate or module", while Cargo since 1.31.0 has been able to handle the syntax (current version I am using is 1.52.1). Situation is bringing into scope function from a lib.rs that exists in the same directory as my main.rs (not external). No extern import is required, and I repeat, Cargo handles it without even a warning. It is only the Visual Studio underlining from this extension that tells me there is an issue, while in practice there is not. Here is a link (pasted below) with discussing the exact situation I am encountering except and noting that it is functional so long as the TOML file has the proper edition, and this discussion is 2 and a half years old. I will note of course that my TOML file matches correctly, and Cargo would warn me if the issue was actually existing.
https://github.com/rust-lang/book/issues/1676