aboutsummaryrefslogtreecommitdiff
path: root/src/server/methods.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-07-30 13:35:28 +0200
committerGitHub <noreply@github.com>2025-07-30 13:35:28 +0200
commitbe3caa6defc11668c384e49c0e0acfb73ef83042 (patch)
tree9c42b35c7f6c8bd9787d860e115abeac10695900 /src/server/methods.odin
parent6c769f52ffd2cd40def26f758498ca4a8b2bce2b (diff)
parentac4eba2c94fdc2d0ad12409eddd00b58b2f282bd (diff)
Merge pull request #792 from BradLewis/feat/rework-documentation
Improve completion processing
Diffstat (limited to 'src/server/methods.odin')
-rw-r--r--src/server/methods.odin5
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})
}
}
}