mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user