Merge pull request #4814 from eatkins/session-save

Clear meta build state on session save
This commit is contained in:
eugene yokota 2019-06-20 00:08:35 -04:00 committed by GitHub
commit ca8381e057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import sbt.internal.util.{ ErrorHandling, GlobalLogBacking }
import sbt.io.{ IO, Using }
import sbt.protocol._
import sbt.util.Logger
import sbt.nio.Keys._
import scala.annotation.tailrec
import scala.util.control.NonFatal
@ -185,6 +186,8 @@ object MainLoop {
try {
def process(): State = {
val newState = Command.process(exec.commandLine, state)
if (exec.commandLine.contains("session"))
newState.get(hasCheckedMetaBuild).foreach(_.set(false))
val doneEvent = ExecStatusEvent(
"Done",
channelName,