aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-07-03 20:40:25 +0200
committerGitHub <noreply@github.com>2025-07-03 20:40:25 +0200
commit56a6c4ef51116f9a7e33b9a4b5fda95baaa0f5a0 (patch)
treeddaeccb47f4dfee9cb4d0fe1c9e4de70cb7d523b /src/server
parent2ffc196083122ac7813c7bf97ed4140cf42fb45e (diff)
parent11380316058ddf53e521385763135b14993b36ad (diff)
Merge pull request #715 from BradLewis/fix/completion-label-details-proc-group
Fix CompletionLabelDetails for proc groups
Diffstat (limited to 'src/server')
-rw-r--r--src/server/completion.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index f52baf2..4544143 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -2055,8 +2055,8 @@ format_to_label_details :: proc(list: ^CompletionList) {
// Split the leading name of the proc
proc_info_split := strings.split_n(proc_info, " proc", 2)
if len(proc_info_split) == 1 {
- // We have no leading package.Name for the proc
- proc_info = proc_info_split[0]
+ // No proc declaration (eg for a proc group)
+ proc_info = ""
} else if len(proc_info_split) == 2 {
proc_info = proc_info_split[1]
}