Skip to content

Commit bfe96df

Browse files
committed
Remove maybeUpdateProjectTargetUri as ProjectName always has targetUriOpt set
1 parent bb88e70 commit bfe96df

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/build/src/main/scala/scala/build/bsp/BspServer.scala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ class BspServer(
5959
sys.exit(1)
6060
}
6161

62-
private def maybeUpdateProjectTargetUri(res: b.WorkspaceBuildTargetsResult): Unit =
63-
for {
64-
(_, n) <- projectNames.iterator
65-
if n.targetUriOpt.isEmpty
66-
target <- res.getTargets.asScala.iterator.find(_.getDisplayName == n.name)
67-
} n.targetUriOpt = Some(target.getId.getUri)
68-
6962
private def stripInvalidTargets(params: b.WorkspaceBuildTargetsResult): Unit = {
7063
val updatedTargets = params
7164
.getTargets
@@ -272,7 +265,6 @@ class BspServer(
272265

273266
override def workspaceBuildTargets(): CompletableFuture[b.WorkspaceBuildTargetsResult] =
274267
super.workspaceBuildTargets().thenApply { res =>
275-
maybeUpdateProjectTargetUri(res)
276268
val res0 = res.duplicate()
277269
stripInvalidTargets(res0)
278270
for (target <- res0.getTargets.asScala) {

0 commit comments

Comments
 (0)