mirror of https://github.com/sbt/sbt.git
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:
parent
aa09a48b71
commit
711dfe34d0
|
|
@ -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)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue