remove the `isInteractive` check when deciding whether to trigger an additional reload #8371

This commit is contained in:
Aleksandra Zdrojowa 2025-11-18 21:48:11 +01:00
parent 8770ad9de8
commit da42031bb3
1 changed files with 3 additions and 5 deletions

View File

@ -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) =>