Set terminal before watch triggered reload

Without setting the terminal, a remote client is unable to reload the
project if it fails.
This commit is contained in:
Ethan Atkins 2020-07-09 09:14:00 -07:00
parent b1dcf031a5
commit d74a10aad1
1 changed files with 1 additions and 1 deletions

View File

@ -1202,7 +1202,7 @@ private[sbt] object ContinuousCommands {
case Watch.Trigger => Right(s"$runWatch ${channel.name}")
case Watch.Reload =>
val rewatch = s"$ContinuousExecutePrefix ${ws.count} ${cs.commands mkString "; "}"
stop.map(_ :: "reload" :: rewatch :: Nil mkString "; ")
stop.map(_ :: s"$SetTerminal ${channel.name}" :: "reload" :: rewatch :: Nil mkString "; ")
case Watch.Prompt => stop.map(_ :: s"$PromptChannel ${channel.name}" :: Nil mkString ";")
case Watch.Run(commands) =>
stop.map(_ +: commands.map(_.commandLine).filter(_.nonEmpty) mkString "; ")