diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-06-28 11:52:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 11:52:44 +0200 |
| commit | d7c08dca5bee9f9ddda7cde4fb5d428251b025a5 (patch) | |
| tree | 0bc1535342af07c6b50ba1b60ea6b2f62d797d80 /src/server/methods.odin | |
| parent | 4eae668a145df223c6cfc7b8929cdd49d436756d (diff) | |
| parent | c8630395d0c3314c356db0cc40b4b79904909c6d (diff) | |
Merge pull request #684 from BradLewis/feat/rework-symbol-documentation-writing
Add field comments information on hover
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, |