diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 08:17:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-30 08:17:26 -0400 |
| commit | 58b9260ab648539bee0c78b7e53861b40d1d6ce8 (patch) | |
| tree | 059bbfd38a97681809c2cfdcfae843c90e60791d /src/server/methods.odin | |
| parent | be3caa6defc11668c384e49c0e0acfb73ef83042 (diff) | |
| parent | 7ce24730de1677b2ab5de77ccf0a4fa6c3373fda (diff) | |
Merge pull request #800 from BradLewis/fix/constructing-docs-methods
Fix issue with constructing docs on indexed symbols
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 bcd96c0..a054abb 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -67,7 +67,6 @@ append_method_completion :: proc( if symbols, ok := &v.methods[method]; ok { for &symbol in symbols { resolve_unresolved_symbol(ast_context, &symbol) - build_documentation(ast_context, &symbol) range, ok := get_range_from_selection_start_to_dot(position_context) @@ -129,12 +128,12 @@ append_method_completion :: proc( item := CompletionItem { label = symbol.name, kind = symbol_type_to_completion_kind(symbol.type), - detail = symbol.signature, + detail = get_short_signature(ast_context, &symbol), additionalTextEdits = remove_edit, textEdit = TextEdit{newText = new_text, range = {start = range.end, end = range.end}}, insertTextFormat = .Snippet, InsertTextMode = .adjustIndentation, - documentation = symbol.doc, + documentation = construct_symbol_docs(&symbol), } append(results, CompletionResult{completion_item = item}) |