feat: add depended_{paths,{source_,}files} methods (#1150)

This commit is contained in:
Myriad-Dreamin 2025-01-11 17:44:23 +08:00 committed by GitHub
parent ec121070d8
commit f43a8e116c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 17 deletions

View file

@ -36,9 +36,7 @@ impl SemanticRequest for SymbolRequest {
let mut symbols = vec![];
// todo! need compilation for iter_dependencies
for path in ctx.dependencies() {
for path in ctx.depended_paths() {
let Ok(source) = ctx.source_by_path(&path) else {
continue;
};