Rust: no longer reload files into the RootDatabase

Files were reloaded to handle cases were there was no content
for a file_id, causing a panic. Missing contents was caused by
files that did not contain valid UTF-8 data. These are skipped
by rust-analyzer when it is loading data into the RootDatabase.
This commit is contained in:
Arthur Baars
2024-10-25 18:37:11 +02:00
parent b112a9b31e
commit 57cdda3405
2 changed files with 2 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ mod translate;
pub mod trap;
fn extract(
rust_analyzer: &mut rust_analyzer::RustAnalyzer,
rust_analyzer: &rust_analyzer::RustAnalyzer,
archiver: &Archiver,
traps: &trap::TrapFileProvider,
file: &std::path::Path,