feat: go to definition of include paths (#156)

This commit is contained in:
Myriad-Dreamin 2024-04-04 11:11:23 +08:00 committed by GitHub
parent 36eea552ac
commit 1c5c6bd929
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 36 additions and 13 deletions

View file

@ -102,7 +102,7 @@ impl StatefulRequest for CompletionRequest {
match_ident = Some(v);
}
}
Some(DerefTarget::ImportPath(v)) => {
Some(DerefTarget::ImportPath(v) | DerefTarget::IncludePath(v)) => {
if !v.text().starts_with(r#""@"#) {
completion_result = complete_path(ctx, v, &source, cursor);
}