aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-13 22:35:24 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-13 22:35:24 -0400
commite9a3c436d6fc23a1622e59394aff1c34762b2482 (patch)
treedb90be7649acaf5e7317c205440aa0badda3752a /src/server/completion.odin
parent69c2024f8a65244d46941fbbf6459fed01348dee (diff)
Revert "Merge pull request #1011 from BradLewis/fix/completions-select-in-selector-call"
This reverts commit 69c2024f8a65244d46941fbbf6459fed01348dee, reversing changes made to a581608407b82b4816b7fbbe29da97c55c53c33e.
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index 5eb8e64..7e789f0 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -96,9 +96,7 @@ get_completion_list :: proc(
}
if position_context.selector != nil {
- if _, ok := position_context.selector.derived.(^ast.Ident); ok {
- completion_type = .Selector
- } else if position_context.selector_expr != nil {
+ if position_context.selector_expr != nil {
if selector_call, ok := position_context.selector_expr.derived.(^ast.Selector_Call_Expr); ok {
if !position_in_node(selector_call.call, position_context.position) {
completion_type = .Selector
@@ -1403,10 +1401,7 @@ get_implicit_completion :: proc(
}
if len(position_context.assign.lhs) > rhs_index {
- if enum_value, unwrapped_super_enum, ok := unwrap_enum(
- ast_context,
- position_context.assign.lhs[rhs_index],
- ); ok {
+ if enum_value, unwrapped_super_enum, ok := unwrap_enum(ast_context, position_context.assign.lhs[rhs_index]); ok {
for name in enum_value.names {
item := CompletionItem {
label = name,