mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Simplify FileDelegate
This commit is contained in:
parent
000eed1da8
commit
fcb88832de
36 changed files with 78 additions and 86 deletions
|
@ -65,7 +65,7 @@ use hir::{sym, ChangeWithProcMacros};
|
|||
use ide_db::{
|
||||
base_db::{
|
||||
salsa::{self, ParallelDatabase},
|
||||
CrateOrigin, Env, FileLoader, FileSet, SourceDatabase, SourceDatabaseExt, VfsPath,
|
||||
CrateOrigin, Env, FileLoader, FileSet, SourceDatabase, SourceRootDatabase, VfsPath,
|
||||
},
|
||||
prime_caches, symbol_index, FxHashMap, FxIndexSet, LineIndexDatabase,
|
||||
};
|
||||
|
@ -286,7 +286,7 @@ impl Analysis {
|
|||
|
||||
/// Gets the text of the source file.
|
||||
pub fn file_text(&self, file_id: FileId) -> Cancellable<Arc<str>> {
|
||||
self.with_db(|db| SourceDatabaseExt::file_text(db, file_id))
|
||||
self.with_db(|db| SourceDatabase::file_text(db, file_id))
|
||||
}
|
||||
|
||||
/// Gets the syntax tree of the file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue