-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 7d27633
Improve symbol order in completions provided by the presentation compiler (#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#7642 1 parent e2018c2 commit 7d27633
File tree
3 files changed
+71
-11
lines changed- presentation-compiler
- src/main/dotty/tools/pc/completions
- test/dotty/tools/pc/tests/completion
3 files changed
+71
-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 |
| |
| |||
766 | 767 |
| |
767 | 768 |
| |
768 | 769 |
| |
770 | + | ||
771 | + | ||
772 | + | ||
773 | + | ||
774 | + | ||
775 | + | ||
776 | + | ||
769 | 777 |
| |
770 | 778 |
| |
771 | 779 |
| |
| |||
784 | 792 |
| |
785 | 793 |
| |
786 | 794 |
| |
795 | + | ||
796 | + | ||
797 | + | ||
798 | + | ||
799 | + | ||
800 | + | ||
801 | + | ||
802 | + | ||
803 | + | ||
804 | + | ||
805 | + | ||
787 | 806 |
| |
788 | 807 |
| |
789 | 808 |
| |
| |||
801 | 820 |
| |
802 | 821 |
| |
803 | 822 |
| |
804 | - | ||
823 | + | ||
805 | 824 |
| |
806 | 825 |
| |
807 | 826 |
| |
| |||
813 | 832 |
| |
814 | 833 |
| |
815 | 834 |
| |
816 | - | ||
835 | + | ||
817 | 836 |
| |
818 | 837 |
| |
819 | 838 |
| |
|
Lines changed: 41 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 | + | ||
480 | + |
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 | - | ||
121 | 114 |
| |
122 | - | ||
123 | - | ||
124 | 115 |
| |
125 | 116 |
| |
126 | 117 |
| |
| |||
129 | 120 |
| |
130 | 121 |
| |
131 | 122 |
| |
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
|
0 commit comments