mirror of https://github.com/sbt/sbt.git
Merge pull request #5667 from eatkins/bsp-retry
Add retries to BspCompileTask.compute
This commit is contained in:
commit
91a5bfc94b
|
|
@ -9,6 +9,7 @@ package sbt.internal.server
|
|||
|
||||
import sbt._
|
||||
import sbt.internal.bsp._
|
||||
import sbt.internal.io.Retry
|
||||
import sbt.librarymanagement.Configuration
|
||||
import sjsonnew.support.scalajson.unsafe.Converter
|
||||
import xsbti.compile.CompileResult
|
||||
|
|
@ -27,7 +28,7 @@ object BspCompileTask {
|
|||
val task = BspCompileTask(targetId, project, config)
|
||||
try {
|
||||
notifyStart(task)
|
||||
val result = compile
|
||||
val result = Retry(compile)
|
||||
notifySuccess(task, result)
|
||||
result
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in New Issue