mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Better API
This commit is contained in:
parent
4bed588001
commit
17870a3e2c
8 changed files with 64 additions and 24 deletions
|
@ -120,11 +120,10 @@ impl<'a> CompletionContext<'a> {
|
|||
if !matches!(definition_source.value, ModuleSource::SourceFile(_)) {
|
||||
return None;
|
||||
}
|
||||
let definition_source_file = definition_source.file_id.original_file(db);
|
||||
|
||||
// TODO kb for all possible candidates
|
||||
let zz = db.list_some_random_files_todo(definition_source_file);
|
||||
dbg!(zz);
|
||||
let module_definition_source_file = definition_source.file_id.original_file(db);
|
||||
let mod_declaration_candidates =
|
||||
db.possible_sudmobules(module_definition_source_file);
|
||||
dbg!(mod_declaration_candidates);
|
||||
// TODO kb exlude existing children from the candidates
|
||||
let existing_children = current_module.children(db).collect::<Vec<_>>();
|
||||
dbg!(existing_children);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue