mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
feat: add depended_{paths,{source_,}files} methods (#1150)
This commit is contained in:
parent
ec121070d8
commit
f43a8e116c
4 changed files with 42 additions and 17 deletions
|
|
@ -82,7 +82,7 @@ impl ReferencesWorker<'_> {
|
|||
fn label_root(mut self) -> Option<Vec<LspLocation>> {
|
||||
let mut ids = vec![];
|
||||
|
||||
for dep in self.ctx.ctx.dependencies() {
|
||||
for dep in self.ctx.ctx.depended_paths() {
|
||||
if let Ok(ref_fid) = self.ctx.ctx.file_id_by_path(&dep) {
|
||||
ids.push(ref_fid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue