aboutsummaryrefslogtreecommitdiff
path: root/src/server/methods.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-25 21:23:29 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-27 20:10:21 -0400
commit747bd0539895fdf2ef9f47ba35238e86f3021fcc (patch)
treeaed05bd361f2db6f9186ab0eec47db4e9e09d4b5 /src/server/methods.odin
parent4eae668a145df223c6cfc7b8929cdd49d436756d (diff)
Consolidate documentation writing code into new file and base it around symbols
Diffstat (limited to 'src/server/methods.odin')
-rw-r--r--src/server/methods.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/methods.odin b/src/server/methods.odin
index 1dae9a0..f17be51 100644
--- a/src/server/methods.odin
+++ b/src/server/methods.odin
@@ -67,7 +67,7 @@ append_method_completion :: proc(
if symbols, ok := &v.methods[method]; ok {
for &symbol in symbols {
resolve_unresolved_symbol(ast_context, &symbol)
- build_procedure_symbol_signature(&symbol)
+ symbol.signature = get_short_signature(ast_context, symbol)
range, ok := get_range_from_selection_start_to_dot(position_context)
@@ -129,7 +129,7 @@ append_method_completion :: proc(
item := CompletionItem {
label = symbol.name,
kind = symbol_type_to_completion_kind(symbol.type),
- detail = concatenate_symbol_information(ast_context, symbol, true),
+ detail = get_short_signature(ast_context, symbol),
additionalTextEdits = remove_edit,
textEdit = TextEdit{newText = new_text, range = {start = range.end, end = range.end}},
insertTextFormat = .Snippet,