Skip to content

Commit b74ca93

Browse files
committed
remove unused imports
1 parent 64e2d6e commit b74ca93

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

presentation-compiler/src/main/dotty/tools/pc/completions/CompletionAffix.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dotty.tools.pc.completions
22

3-
import org.eclipse.lsp4j.TextEdit
43
import org.eclipse.lsp4j.Position
4+
import org.eclipse.lsp4j.Range
55

66
/**
77
* @param suffixes which we should insert
@@ -42,7 +42,7 @@ case class CompletionAffix(
4242

4343
given Ordering[Position] = Ordering.by(elem => (elem.getLine, elem.getCharacter))
4444

45-
def toInsertRange: Option[org.eclipse.lsp4j.Range] =
45+
def toInsertRange: Option[Range] =
4646
import scala.language.unsafeNulls
4747

4848
val ranges = prefixes.collect:
@@ -51,7 +51,7 @@ case class CompletionAffix(
5151
for
5252
startPos <- ranges.map(_.getStart).minOption
5353
endPos <- ranges.map(_.getEnd).maxOption
54-
yield org.eclipse.lsp4j.Range(startPos, endPos)
54+
yield Range(startPos, endPos)
5555

5656
private def loopPrefix(prefixes: List[PrefixKind]) =
5757
prefixes match
@@ -92,4 +92,4 @@ enum PrefixKind:
9292
type Suffix = Affix[SuffixKind]
9393
type Prefix = Affix[PrefixKind]
9494

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)

presentation-compiler/src/main/dotty/tools/pc/completions/Completions.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import dotty.tools.pc.completions.OverrideCompletions.OverrideExtractor
3333
import dotty.tools.pc.buildinfo.BuildInfo
3434
import dotty.tools.pc.utils.MtagsEnrichments.*
3535
import dotty.tools.dotc.core.Denotations.SingleDenotation
36-
import org.eclipse.lsp4j.TextEdit
37-
import org.eclipse.lsp4j.Position
36+
3837

3938
class Completions(
4039
text: String,

0 commit comments

Comments
 (0)