From 33e565981eec1e5f37370d7bd2279b11c04dcda5 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 23 Sep 2025 10:05:29 -0400 Subject: Correct array like method completions by resolving the selector before the field --- src/server/completion.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/completion.odin') diff --git a/src/server/completion.odin b/src/server/completion.odin index 38b5cbe..75bec86 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -2271,14 +2271,14 @@ get_expression_string_from_position_context :: proc(position_context: ^DocumentP } - if position_context.field != nil { - return src[position_context.field.pos.offset:position_context.field.end.offset] - } - if position_context.selector != nil { return src[position_context.selector.pos.offset:position_context.selector.end.offset] } + if position_context.field != nil { + return src[position_context.field.pos.offset:position_context.field.end.offset] + } + return "" } -- cgit v1.2.3