We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2007157 commit 64d522eCopy full SHA for 64d522e
rust/extractor/src/rust_analyzer.rs
@@ -41,6 +41,7 @@ pub struct ParseResult<'a> {
41
pub errors: Vec<SyntaxError>,
42
pub semantics_info: Result<FileSemanticInformation<'a>, &'a str>,
43
}
44
+
45
impl<'a> RustAnalyzer<'a> {
46
pub fn load_workspace(
47
project: &ProjectManifest,
@@ -100,8 +101,10 @@ impl<'a> RustAnalyzer<'a> {
100
101
file_id,
102
path.to_string_lossy()
103
);
104
+ no_semantics_reason = "no text available for the file in the project";
105
+ } else {
106
+ no_semantics_reason = "file not found in project";
107
- no_semantics_reason = "file not found in project";
108
109
RustAnalyzer::WithoutSemantics { reason } => {
110
no_semantics_reason = reason;
0 commit comments