mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
fix: Fix project linking popup appearing for modules that can be linked to a crate
This commit is contained in:
parent
d73161b491
commit
98a673c4a8
2 changed files with 24 additions and 6 deletions
|
@ -125,7 +125,11 @@ export async function createClient(
|
|||
typeof diag.code === "string" || typeof diag.code === "number"
|
||||
? diag.code
|
||||
: diag.code?.value;
|
||||
if (value === "unlinked-file" && !unlinkedFiles.includes(uri)) {
|
||||
if (
|
||||
value === "unlinked-file" &&
|
||||
!unlinkedFiles.includes(uri) &&
|
||||
diag.message !== "file not included in module tree"
|
||||
) {
|
||||
const config = vscode.workspace.getConfiguration("rust-analyzer");
|
||||
if (config.get("showUnlinkedFileNotification")) {
|
||||
unlinkedFiles.push(uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue