diff options
author | Jonas Schievink <[email protected]> | 2021-03-24 21:18:17 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-03-24 21:18:17 +0000 |
commit | 37c6ce34a91b74255f10bccccaabcd2cf7aa3abd (patch) | |
tree | d3c56f022b9a6d05f4d6f5d7588e072d2437687f /crates | |
parent | 4a1f5d367db3b5c6ec27d96c96c98b89988c0b3a (diff) |
Document unlinked-file diagnostic
Diffstat (limited to 'crates')
-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, |