Skip state in task progress

In the `watch` input task, which is an alternative to `~`, with super
shell, there would be a solitary progress line for `state` in between
builds.
This commit is contained in:
Ethan Atkins 2019-09-15 11:42:41 -07:00
parent aa09a48b71
commit 711dfe34d0
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ private[sbt] final class TaskProgress(log: ManagedLogger)
stop()
}
private[this] val skipReportTasks =
Set("run", "bgRun", "fgRun", "scala", "console", "consoleProject", "consoleQuick")
Set("run", "bgRun", "fgRun", "scala", "console", "consoleProject", "consoleQuick", "state")
private[this] def report(): Unit = {
val currentTasks = activeTasks.toVector
val ltc = lastTaskCount.get
@ -100,5 +100,5 @@ private[sbt] final class TaskProgress(log: ManagedLogger)
private[this] def containsSkipTasks(tasks: Vector[Task[_]]): Boolean =
tasks
.map(t => taskName(t))
.exists(n => skipReportTasks.exists(m => n.endsWith("/ " + m)))
.exists(n => skipReportTasks.exists(m => m == n || n.endsWith("/ " + m)))
}