diff options
| author | hecatia-elegua <108802164+hecatia-elegua@users.noreply.github.com> | 2023-04-11 21:14:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 21:14:52 +0200 |
| commit | 398af0259f7614ff8a0d603edd5d94ce9aecd5f2 (patch) | |
| tree | 207fc25b5c6d73d5c7833fab11d24d2fa5a837d7 /editors/code/src/client.ts | |
| parent | 33ee157f3b05865984957953df21f4711f8e5cd6 (diff) | |
| parent | 7501d3b721560637e27f904d9fce79182c41bef7 (diff) | |
| download | rust-398af0259f7614ff8a0d603edd5d94ce9aecd5f2.tar.gz rust-398af0259f7614ff8a0d603edd5d94ce9aecd5f2.zip | |
Merge branch 'master' into alias-based-completion2
Diffstat (limited to 'editors/code/src/client.ts')
| -rw-r--r-- | editors/code/src/client.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index e76710cb247..b27d9f54943 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -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); |
