@@ -254,13 +254,13 @@ object MillMain0 {
254254 _ => _ => None ,
255255 extraEnv : Seq [(String , String )] = Nil ,
256256 metaLevelOverride : Option [Int ] = None
257- ) = MillDaemonServer .withOutLock(
258- config.noBuildLock.value,
259- config.noWaitForBuildLock.value,
260- out,
261- millActiveCommandMessage,
262- streams,
263- outLock
257+ ): Watching . Result [ RunnerState ] = MillDaemonServer .withOutLock(
258+ noBuildLock = config.noBuildLock.value,
259+ noWaitForBuildLock = config.noWaitForBuildLock.value,
260+ out = out ,
261+ millActiveCommandMessage = millActiveCommandMessage ,
262+ streams = streams ,
263+ outLock = outLock
264264 ) {
265265 def proceed (logger : Logger ): Watching .Result [RunnerState ] = {
266266 // Enter key pressed, removing mill-selective-execution.json to
@@ -306,10 +306,10 @@ object MillMain0 {
306306 proceed(logger)
307307 case None =>
308308 Using .resource(getLogger(
309- streams,
310- config,
309+ streams = streams ,
310+ config = config ,
311311 enableTicker = enableTicker,
312- daemonDir,
312+ daemonDir = daemonDir ,
313313 colored = colored,
314314 colors = colors,
315315 out = out
@@ -322,21 +322,21 @@ object MillMain0 {
322322 if (config.jshell.value) {
323323 val bootstrapped = runMillBootstrap(
324324 skipSelectiveExecution = false ,
325- Some (stateCache),
326- Seq (" jshell" ) ++ config.leftoverArgs.value,
327- streams,
328- " jshell" ,
325+ prevState = Some (stateCache),
326+ tasksAndParams = Seq (" jshell" ) ++ config.leftoverArgs.value,
327+ streams = streams ,
328+ millActiveCommandMessage = " jshell" ,
329329 metaLevelOverride = Some (1 )
330330 )
331331
332332 (true , bootstrapped.result)
333333 } else if (config.repl.value) {
334334 val bootstrapped = runMillBootstrap(
335335 skipSelectiveExecution = false ,
336- Some (stateCache),
337- Seq (" console" ) ++ config.leftoverArgs.value,
338- streams,
339- " repl" ,
336+ prevState = Some (stateCache),
337+ tasksAndParams = Seq (" console" ) ++ config.leftoverArgs.value,
338+ streams = streams ,
339+ millActiveCommandMessage = " repl" ,
340340 metaLevelOverride = Some (1 )
341341 )
342342
@@ -364,11 +364,11 @@ object MillMain0 {
364364 val watchLogger = new PrefixLogger (bspLogger, Seq (" watch" ))
365365 while (keepGoing) {
366366 val watchRes = runMillBootstrap(
367- false ,
368- prevRunnerStateOpt,
369- Seq (" version" ),
370- initCommandLogger.streams,
371- " BSP:initialize" ,
367+ skipSelectiveExecution = false ,
368+ prevState = prevRunnerStateOpt,
369+ tasksAndParams = Seq (" version" ),
370+ streams = initCommandLogger.streams,
371+ millActiveCommandMessage = " BSP:initialize" ,
372372 loggerOpt = Some (initCommandLogger),
373373 reporter = ev => {
374374 val bspIdByModule = mill.bsp.worker.BspEvaluators (
@@ -391,7 +391,7 @@ object MillMain0 {
391391 prevRunnerStateOpt = Some (watchRes.result)
392392
393393 val sessionResultFuture = bspServerHandle.startSession(
394- watchRes.result.frames.flatMap(_.evaluator),
394+ evaluators = watchRes.result.frames.flatMap(_.evaluator),
395395 errored = watchRes.error.nonEmpty,
396396 watched = watchRes.watched
397397 )
@@ -497,11 +497,11 @@ object MillMain0 {
497497 (skipSelectiveExecution : Boolean , prevState : Option [RunnerState ]) => {
498498 adjustJvmProperties(userSpecifiedProperties, initialSystemProperties)
499499 runMillBootstrap(
500- skipSelectiveExecution,
501- prevState,
502- config.leftoverArgs.value,
503- streams,
504- config.leftoverArgs.value.mkString(" " )
500+ skipSelectiveExecution = skipSelectiveExecution ,
501+ prevState = prevState ,
502+ tasksAndParams = config.leftoverArgs.value,
503+ streams = streams ,
504+ millActiveCommandMessage = config.leftoverArgs.value.mkString(" " )
505505 )
506506 }
507507 )
0 commit comments