File tree 3 files changed +9
-4
lines changed
src/main/dotty/tools/pc/completions
test/dotty/tools/pc/tests
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -926,6 +926,7 @@ class Completions(
926
926
v match
927
927
case _ : CompletionValue .SingletonValue => 0
928
928
case _ : CompletionValue .Compiler => 1
929
+ case CompletionValue .ExtraMethod (_, _ : CompletionValue .Compiler ) => 1
929
930
case _ : CompletionValue .CaseKeyword => 2
930
931
case _ : CompletionValue .NamedArg => 3
931
932
case _ : CompletionValue .Keyword => 4
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ object SingletonCompletions:
32
32
case (i @ Ident (name)) :: _ => List (name.toString() -> i.span)
33
33
case (l @ Literal (const)) :: _ => List (const.show -> l.span)
34
34
case _ => Nil
35
- query = name.replace(Cursor .value, " " )
35
+ query = name.replace(Cursor .value, " " ).nn
36
36
tpe = tpe0 match
37
37
// for Tuple 2 we want to suggest first arg completion
38
38
case AppliedType (t : TypeRef , args) if t.classSymbol == Symbols .defn.Tuple2 && args.nonEmpty =>
Original file line number Diff line number Diff line change 1
1
package dotty .tools .pc .tests
2
+
3
+ import scala .language .unsafeNulls
4
+
2
5
import dotty .tools .pc .base .BasePCSuite
3
6
import dotty .tools .pc .utils .RangeReplace
4
- import scala .meta .internal .pc .PcReferencesRequest
5
- import scala .meta .internal .metals .CompilerVirtualFileParams
7
+
6
8
import java .net .URI
7
- import scala .meta .internal .metals .EmptyCancelToken
8
9
import org .eclipse .lsp4j .jsonrpc .messages .{Either => JEither }
9
10
import scala .meta .internal .jdk .CollectionConverters .*
11
+ import scala .meta .internal .metals .CompilerVirtualFileParams
12
+ import scala .meta .internal .metals .EmptyCancelToken
13
+ import scala .meta .internal .pc .PcReferencesRequest
10
14
11
15
import org .junit .Test
12
16
You can’t perform that action at this time.
0 commit comments