Commit 2921559
Improve symbol order in completions provided by the presentation compiler (scala#23888)
Extension methods that are not in the same file are placed after all
Product methods and even after extension methods like "ensuring". This
PR penalizes the following methods, so that they are no longer at the
top of the suggestions:
- scala.Product.*
- scala.Equals.*
- scala.Predef.ArrowAssoc.*
- scala.Predef.Ensuring.*
- scala.Predef.StringFormat.*
- scala.Predef.nn
- scala.Predef.runtimeChecked
Resolves scalameta/metals#76421 parent 99ed257 commit 2921559
File tree
3 files changed
+70
-11
lines changed- presentation-compiler
- src/main/dotty/tools/pc/completions
- test/dotty/tools/pc/tests/completion
3 files changed
+70
-11
lines changedLines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
771 | 779 | | |
772 | 780 | | |
773 | 781 | | |
| |||
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
789 | 808 | | |
790 | 809 | | |
791 | 810 | | |
| |||
803 | 822 | | |
804 | 823 | | |
805 | 824 | | |
806 | | - | |
| 825 | + | |
807 | 826 | | |
808 | 827 | | |
809 | 828 | | |
| |||
815 | 834 | | |
816 | 835 | | |
817 | 836 | | |
818 | | - | |
| 837 | + | |
819 | 838 | | |
820 | 839 | | |
821 | 840 | | |
| |||
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 112 | | |
118 | 113 | | |
119 | | - | |
120 | 114 | | |
121 | | - | |
122 | | - | |
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
| |||
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
2241 | | - | |
| 2241 | + | |
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
| |||
0 commit comments