Commit 4f89210
Sort JSDoc parameter suggestions by argument position
Fixes #20183
When triggering completions after @param in a JSDoc comment,
parameter suggestions are now sorted by their position in the
function signature, so 'z' from foo(z, a) appears before 'a'.
Previously all parameters had the same sortText (LocationPriority),
causing them to be sorted alphabetically instead of by position.
Co-Authored-By: RoomWithOutRoof <RoomWithOutRoof@users.noreply.github.com>1 parent f1a9288 commit 4f89210
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
0 commit comments