Commit 6ac8dca
authored
Add completion sorting by parameter count (#184)
Address #183
Sort method completions by parameter count (fewer parameters first).
Previously, JDTLS returned the same sortText value (e.g., 999999179) for
all overloads of a method like List.of(), causing Zed to display them in
arbitrary order.
This change prefixes sortText with a zero-padded parameter count (e.g.,
00999999179, 01999999179, 02999999179), ensuring overloads are sorted
from fewest to most parameters.1 parent ec245ac commit 6ac8dca
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
91 | 115 | | |
92 | 116 | | |
93 | 117 | | |
| |||
137 | 161 | | |
138 | 162 | | |
139 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
140 | 171 | | |
141 | 172 | | |
142 | 173 | | |
| |||
0 commit comments