mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-23 12:45:04 +00:00
feat: classify field accesses for ide functions (#1034)
* feat: classify field accesses for ide functions * test: update snapshot
This commit is contained in:
parent
7dbaca8851
commit
39243ba626
9 changed files with 216 additions and 81 deletions
|
@ -89,7 +89,8 @@ impl StatefulRequest for CompletionRequest {
|
|||
let explicit = false;
|
||||
|
||||
// Skip if is the let binding item *directly*
|
||||
if let Some(SyntaxClass::VarAccess(node)) = &syntax {
|
||||
if let Some(SyntaxClass::VarAccess(var)) = &syntax {
|
||||
let node = var.node();
|
||||
match node.parent_kind() {
|
||||
// complete the init part of the let binding
|
||||
Some(SyntaxKind::LetBinding) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue