aboutsummaryrefslogtreecommitdiff
path: root/src/server/position_context.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-13 19:56:30 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-13 19:56:30 -0400
commite17b225fe055e2eb5ddd4a5b89f2b13d6001884b (patch)
treedb90be7649acaf5e7317c205440aa0badda3752a /src/server/position_context.odin
parenta697921c2556eb14f10fb54117f83dca4fffd027 (diff)
Resolve selector completions when a selector expr within a selector call expr
Diffstat (limited to 'src/server/position_context.odin')
-rw-r--r--src/server/position_context.odin5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/position_context.odin b/src/server/position_context.odin
index d5e7d33..0417df8 100644
--- a/src/server/position_context.odin
+++ b/src/server/position_context.odin
@@ -649,7 +649,10 @@ get_document_position_node :: proc(node: ^ast.Node, position_context: ^DocumentP
}
}
case ^Selector_Expr:
- if position_context.hint == .Definition || position_context.hint == .Hover && n.field != nil {
+ if position_context.hint == .Definition ||
+ position_context.hint == .Hover ||
+ position_context.hint == .SignatureHelp ||
+ position_context.hint == .Completion {
position_context.selector = n.expr
position_context.field = n.field
position_context.selector_expr = node