diff --git a/bsp/worker/src/mill/bsp/worker/State.scala b/bsp/worker/src/mill/bsp/worker/State.scala index b9a13b04f9b..f9a97a75840 100644 --- a/bsp/worker/src/mill/bsp/worker/State.scala +++ b/bsp/worker/src/mill/bsp/worker/State.scala @@ -16,7 +16,9 @@ private class State(evaluators: Seq[Evaluator], debug: String => Unit) { (Seq(rootModule) ++ otherModules).collect { case m: BspModule => val uri = Utils.sanitizeUri( - rootModule.millSourcePath / m.millModuleSegments.parts + rootModule.millSourcePath / + m.millOuterCtx.foreign.fold(List.empty[String])(_.parts) / + m.millModuleSegments.parts ) (new BuildTargetIdentifier(uri), (m, eval))