mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
dev: complete labels with tolerating syntax error (#974)
This commit is contained in:
parent
00195884de
commit
2f882378bc
7 changed files with 42 additions and 31 deletions
|
|
@ -48,7 +48,7 @@ pub(crate) fn find_references(
|
|||
) -> Option<Vec<LspLocation>> {
|
||||
let finding_label = match target {
|
||||
DerefTarget::VarAccess(..) | DerefTarget::Callee(..) => false,
|
||||
DerefTarget::Label(..) | DerefTarget::Ref(..) => true,
|
||||
DerefTarget::Label(..) | DerefTarget::LabelError(..) | DerefTarget::Ref(..) => true,
|
||||
DerefTarget::ImportPath(..) | DerefTarget::IncludePath(..) | DerefTarget::Normal(..) => {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue