Merge pull request #5667 from eatkins/bsp-retry

Add retries to BspCompileTask.compute
This commit is contained in:
Ethan Atkins 2020-07-03 14:07:53 -07:00 committed by GitHub
commit 91a5bfc94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 {