mirror of https://github.com/sbt/sbt.git
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:
parent
b1dcf031a5
commit
d74a10aad1
|
|
@ -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 "; ")
|
||||
|
|
|
|||
Loading…
Reference in New Issue