diff options
Diffstat (limited to 'src/server/position_context.odin')
| -rw-r--r-- | src/server/position_context.odin | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/position_context.odin b/src/server/position_context.odin index 0417df8..d5e7d33 100644 --- a/src/server/position_context.odin +++ b/src/server/position_context.odin @@ -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 |