From 37c6ce34a91b74255f10bccccaabcd2cf7aa3abd Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 24 Mar 2021 22:18:17 +0100 Subject: Document unlinked-file diagnostic --- crates/ide/src/diagnostics/unlinked_file.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ide/src/diagnostics/unlinked_file.rs b/crates/ide/src/diagnostics/unlinked_file.rs index c5741bf6b..019b0b440 100644 --- a/crates/ide/src/diagnostics/unlinked_file.rs +++ b/crates/ide/src/diagnostics/unlinked_file.rs @@ -20,6 +20,10 @@ use crate::Fix; use super::fixes::DiagnosticWithFix; +// Diagnostic: unlinked-file +// +// This diagnostic is shown for files that are not included in any crate, or files that are part of +// crates rust-analyzer failed to discover. The file will not have IDE features available. #[derive(Debug)] pub(crate) struct UnlinkedFile { pub(crate) file_id: FileId, -- cgit v1.2.3