Merge branch 'develop' into log-format-color

This commit is contained in:
Ethan Atkins 2020-10-24 12:48:47 -07:00 committed by GitHub
commit 0d332101f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -1327,7 +1327,10 @@ private[sbt] object ContinuousCommands {
}
private[sbt] val preWatchCommand = watchCommand(preWatch) { (channel, state) =>
watchState(state, channel).beforeCommand(state)
val ws = watchState(state, channel)
val newState = ws.beforeCommand(state)
ws.callbacks.beforeCommand()
newState
}
private[sbt] val postWatchCommand = watchCommand(postWatch) { (channel, state) =>
val cs = watchState(state, channel)

View File

@ -0,0 +1,5 @@
import java.nio.file.{ Files, Paths }
watchBeforeCommand := { () => Files.write(Paths.get("foo"), "foo".getBytes) }
watchOnIteration := { (_, _, _) => sbt.nio.Watch.CancelWatch }

View File

@ -0,0 +1,3 @@
> ~compile
$ exists foo