diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-25 21:23:29 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-27 20:10:21 -0400 |
| commit | 747bd0539895fdf2ef9f47ba35238e86f3021fcc (patch) | |
| tree | aed05bd361f2db6f9186ab0eec47db4e9e09d4b5 /src/server/methods.odin | |
| parent | 4eae668a145df223c6cfc7b8929cdd49d436756d (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.odin | 4 |
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, |