From bdc164ca3247cd1f5fb25c0efd5bab553cfd1573 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 17 Aug 2025 11:04:00 -0400 Subject: Add completion label to detail when using labelDetails --- src/server/completion.odin | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server') diff --git a/src/server/completion.odin b/src/server/completion.odin index 133e61d..9bb2f3b 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -279,9 +279,15 @@ convert_completion_results :: proc( details := CompletionItemLabelDetails{} if result.detail != "" { details.description = result.detail + item.detail = result.detail } else { details.detail = get_completion_details(ast_context, result.symbol) details.description = get_completion_description(ast_context, result.symbol) + if details.detail != "" { + item.detail = details.detail + } else if details.description != "" { + item.detail = details.description + } } // hack for sublime text's issue // remove when this issue is fixed: https://github.com/sublimehq/sublime_text/issues/6033 -- cgit v1.2.3