Skip to content

Commit 73ac067

Browse files
committed
Sort REPL autocomplete suggestions
1 parent 17c4497 commit 73ac067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/interactive/Interactive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ object Interactive {
219219
case _ => getScopeCompletions(ctx)
220220
}
221221
interactiv.println(i"completion with pos = $pos, prefix = $prefix, termOnly = $termOnly, typeOnly = $typeOnly = ${completions.toList}%, %")
222-
(completionPos, completions.toList)
222+
(completionPos, completions.toList.sortBy(_.name.show))
223223
}
224224

225225
/** Possible completions of members of `prefix` which are accessible when called inside `boundary` */

0 commit comments

Comments
 (0)