File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
frontend/src/main/scala/bloop/logging Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,10 @@ final class BspServerLogger private (
161
161
private def toExistingBspPosition (pos : xsbti.Position ): Option [bsp.Range ] = {
162
162
def asIntPos (opt : Optional [Integer ]) = InterfaceUtil .toOption(opt).map(_.toInt)
163
163
for {
164
- startLine <- asIntPos(pos.startLine())
165
- startColumn <- asIntPos(pos.startColumn())
166
- endLine <- asIntPos(pos.endLine())
167
- endColumn <- asIntPos(pos.endColumn())
164
+ startLine <- asIntPos(pos.startLine()).orElse(asIntPos(pos.line()))
165
+ startColumn <- asIntPos(pos.startColumn()).orElse(asIntPos(pos.pointer()))
166
+ endLine = asIntPos(pos.endLine()).getOrElse(startLine )
167
+ endColumn = asIntPos(pos.endColumn()).getOrElse(startColumn )
168
168
} yield bsp.Range (
169
169
bsp.Position (startLine - 1 , startColumn),
170
170
bsp.Position (endLine - 1 , endColumn)
You can’t perform that action at this time.
0 commit comments