mirror of https://github.com/sbt/sbt.git
remove the `isInteractive` check when deciding whether to trigger an additional reload #8371
This commit is contained in:
parent
8770ad9de8
commit
da42031bb3
|
|
@ -305,11 +305,9 @@ private[sbt] object MainLoop:
|
|||
|
||||
val channel = channelName.flatMap(exchange.channelForName)
|
||||
val (canReload, useLoadp) = channel match
|
||||
case Some(nc: NetworkChannel) =>
|
||||
val isInteractive = nc.isInteractive
|
||||
(isInteractive || exec.execId.nonEmpty, !isInteractive)
|
||||
case Some(_: ConsoleChannel) => (true, false)
|
||||
case _ => (false, false)
|
||||
case Some(nc: NetworkChannel) => (exec.execId.nonEmpty, true)
|
||||
case Some(_: ConsoleChannel) => (true, false)
|
||||
case _ => (false, false)
|
||||
|
||||
state.get(CheckBuildSourcesKey) match {
|
||||
case Some(cbs) if canReload && cbs.needsReload(state, exec) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue