diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-07-03 20:40:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 20:40:25 +0200 |
| commit | 56a6c4ef51116f9a7e33b9a4b5fda95baaa0f5a0 (patch) | |
| tree | ddaeccb47f4dfee9cb4d0fe1c9e4de70cb7d523b /src/server | |
| parent | 2ffc196083122ac7813c7bf97ed4140cf42fb45e (diff) | |
| parent | 11380316058ddf53e521385763135b14993b36ad (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.odin | 4 |
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] } |