Skip to content

Commit

Permalink
[BSP] Remove duplicate sources entries in MillBuildRootModule (#3682)
Browse files Browse the repository at this point in the history
`scriptSources` is already part of `sources`. We were returning those
files twice.

Pull Request: #3682
  • Loading branch information
lolgab authored Oct 7, 2024
1 parent 070e908 commit cff9993
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bsp/worker/src/mill/bsp/worker/MillBuildServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ private class MillBuildServer(
tasks = {
case module: MillBuildRootModule =>
Task.Anon {
module.scriptSources().map(p => sourceItem(p.path, false)) ++
module.sources().map(p => sourceItem(p.path, false)) ++
module.sources().map(p => sourceItem(p.path, false)) ++
module.generatedSources().map(p => sourceItem(p.path, true))
}
case module: JavaModule =>
Expand Down

0 comments on commit cff9993

Please sign in to comment.