diff options
-rw-r--r-- | crates/ide/src/diagnostics/unlinked_file.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; | |||
20 | 20 | ||
21 | use super::fixes::DiagnosticWithFix; | 21 | use super::fixes::DiagnosticWithFix; |
22 | 22 | ||
23 | // Diagnostic: unlinked-file | ||
24 | // | ||
25 | // This diagnostic is shown for files that are not included in any crate, or files that are part of | ||
26 | // crates rust-analyzer failed to discover. The file will not have IDE features available. | ||
23 | #[derive(Debug)] | 27 | #[derive(Debug)] |
24 | pub(crate) struct UnlinkedFile { | 28 | pub(crate) struct UnlinkedFile { |
25 | pub(crate) file_id: FileId, | 29 | pub(crate) file_id: FileId, |