diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-16 19:32:27 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-16 19:32:27 +1100 |
| commit | 45bb4a16cd821fb49d9c5b082dade954e59570ec (patch) | |
| tree | c29fcf277e3d4fc217ac403448a3b7a0cc5a6e1d /src/server | |
| parent | 79dc7bb79998428a96ab25f6c122dfc4c1909ac1 (diff) | |
Only use field for selector completions if the position is within the field
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 6663be9..e16c49c 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -741,7 +741,7 @@ get_selector_completion :: proc( field: string - if position_context.field != nil { + if position_context.field != nil && position_in_node(position_context.field, position_context.position) { #partial switch v in position_context.field.derived { case ^ast.Ident: field = v.name |