mirror of https://github.com/sbt/sbt.git
[BSP] add handle for cancelled compilation
This commit is contained in:
parent
f0efbf0f5d
commit
f58c8c349a
|
|
@ -509,8 +509,9 @@ object BuildServerProtocol {
|
|||
case Value(_) => StatusCode.Success
|
||||
case Inc(cause) =>
|
||||
cause.getCause match {
|
||||
case _: CompileFailed => StatusCode.Error
|
||||
case err => throw cause
|
||||
case _: CompileFailed => StatusCode.Error
|
||||
case _: InterruptedException => StatusCode.Cancelled
|
||||
case err => throw cause
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue