diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-26 20:16:28 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-29 15:49:11 -0400 |
| commit | 58b0861ada89c42539931050ebabe4572b0b4c29 (patch) | |
| tree | a1d910fc6d30c47a81352cc0a6a922bbd308bda6 /src/server/methods.odin | |
| parent | ca14a7b8462d4f0d996dd502ac7183dc426f4a74 (diff) | |
Update selector completions
Diffstat (limited to 'src/server/methods.odin')
| -rw-r--r-- | src/server/methods.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/methods.odin b/src/server/methods.odin index 4b8e74e..bcd96c0 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -46,7 +46,7 @@ append_method_completion :: proc( ast_context: ^AstContext, selector_symbol: Symbol, position_context: ^DocumentPositionContext, - items: ^[dynamic]CompletionItem, + results: ^[dynamic]CompletionResult, receiver: string, ) { if selector_symbol.type != .Variable && selector_symbol.type != .Struct { @@ -125,7 +125,6 @@ append_method_completion :: proc( } else { new_text = fmt.tprintf("%v(%v%v%v)$0", new_text, references, receiver, dereferences) } - build_documentation(ast_context, &symbol) item := CompletionItem { label = symbol.name, @@ -138,7 +137,7 @@ append_method_completion :: proc( documentation = symbol.doc, } - append(items, item) + append(results, CompletionResult{completion_item = item}) } } } |