1
1
package dotty .tools .pc .completions
2
2
3
- import org .eclipse .lsp4j .TextEdit
4
3
import org .eclipse .lsp4j .Position
4
+ import org .eclipse .lsp4j .Range
5
5
6
6
/**
7
7
* @param suffixes which we should insert
@@ -42,7 +42,7 @@ case class CompletionAffix(
42
42
43
43
given Ordering [Position ] = Ordering .by(elem => (elem.getLine, elem.getCharacter))
44
44
45
- def toInsertRange : Option [org.eclipse.lsp4j. Range ] =
45
+ def toInsertRange : Option [Range ] =
46
46
import scala .language .unsafeNulls
47
47
48
48
val ranges = prefixes.collect:
@@ -51,7 +51,7 @@ case class CompletionAffix(
51
51
for
52
52
startPos <- ranges.map(_.getStart).minOption
53
53
endPos <- ranges.map(_.getEnd).maxOption
54
- yield org.eclipse.lsp4j. Range (startPos, endPos)
54
+ yield Range (startPos, endPos)
55
55
56
56
private def loopPrefix (prefixes : List [PrefixKind ]) =
57
57
prefixes match
@@ -92,4 +92,4 @@ enum PrefixKind:
92
92
type Suffix = Affix [SuffixKind ]
93
93
type Prefix = Affix [PrefixKind ]
94
94
95
- private case class Affix [+ T ](kind : T , insertRange : Option [org.eclipse.lsp4j. Range ] = None )
95
+ private case class Affix [+ T ](kind : T , insertRange : Option [Range ] = None )
0 commit comments