diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-13 22:38:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-13 22:38:30 -0400 |
| commit | e1bbebd377a15b1833c89fa00c23edb8e702c1e3 (patch) | |
| tree | a11d30a333c1a6f491d93a4212ca96af7d5b62af /src/server/position_context.odin | |
| parent | 69c2024f8a65244d46941fbbf6459fed01348dee (diff) | |
| parent | 963411cf80140f1231f3b17d76c68d09655ebef4 (diff) | |
Merge pull request #1012 from BradLewis/master
Revert selector within selector call expression changes
Diffstat (limited to 'src/server/position_context.odin')
| -rw-r--r-- | src/server/position_context.odin | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/position_context.odin b/src/server/position_context.odin index 46efce2..d5e7d33 100644 --- a/src/server/position_context.odin +++ b/src/server/position_context.odin @@ -138,7 +138,7 @@ get_document_position_context :: proc( position_context.parent_binary = nil } - if hint == .Completion { + if hint == .Completion && position_context.selector == nil && position_context.field == nil { fallback_position_context_completion(document, position, &position_context) } @@ -649,10 +649,7 @@ get_document_position_node :: proc(node: ^ast.Node, position_context: ^DocumentP } } case ^Selector_Expr: - if position_context.hint == .Definition || - position_context.hint == .Hover || - position_context.hint == .SignatureHelp || - position_context.hint == .Completion { + if position_context.hint == .Definition || position_context.hint == .Hover && n.field != nil { position_context.selector = n.expr position_context.field = n.field position_context.selector_expr = node |