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 Value(_) => StatusCode.Success
|
||||||
case Inc(cause) =>
|
case Inc(cause) =>
|
||||||
cause.getCause match {
|
cause.getCause match {
|
||||||
case _: CompileFailed => StatusCode.Error
|
case _: CompileFailed => StatusCode.Error
|
||||||
case err => throw cause
|
case _: InterruptedException => StatusCode.Cancelled
|
||||||
|
case err => throw cause
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue