Skip to content

Commit

Permalink
NIT
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Sep 8, 2022
1 parent c841d31 commit 3aa53ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/build/src/main/scala/scala/build/bsp/BspClient.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package scala.build.bsp

import ch.epfl.scala.bsp4j.Location
import ch.epfl.scala.{bsp4j => b}

import java.lang.{Boolean => JBoolean}
Expand Down Expand Up @@ -196,7 +195,7 @@ class BspClient(
new b.Diagnostic(range, diag.message)

diag.relatedInformation.foreach { relatedInformation =>
val location = new Location(path.toNIO.toUri.toASCIIString, range)
val location = new b.Location(path.toNIO.toUri.toASCIIString, range)
val related = new b.DiagnosticRelatedInformation(location, relatedInformation.message)
bDiag.setRelatedInformation(List(related).asJava)
}
Expand Down

0 comments on commit 3aa53ba

Please sign in to comment.