Skip to content

Commit 155cd0a

Browse files
committed
Stop stripping -J prefix from Metals jvmOptions
1 parent 00b715a commit 155cd0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

frontend/src/main/scala/bloop/dap/BloopDebuggee.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,14 @@ private final class MainClassDebugAdapter(
5757
val javaRuntime: Option[JavaRuntime] = JavaRuntime(env.javaHome.underlying)
5858
def name: String = s"${getClass.getSimpleName}(${project.name}, ${mainClass.className})"
5959
def start(state: State, listener: DebuggeeListener): Task[ExitStatus] = {
60-
// TODO: https://github.com/scalacenter/bloop/issues/1456
61-
// Metals used to add the `-J` prefix but it is not needed anymore
62-
// So we cautiously strip it off
63-
val jvmOptions = mainClass.jvmOptions.map(_.stripPrefix("-J"))
6460
val runState = Tasks.runJVM(
6561
state,
6662
project,
6763
env,
6864
project.workspaceDirectory.getOrElse(project.baseDirectory),
6965
mainClass.className,
7066
mainClass.arguments.toArray,
71-
jvmOptions.toArray,
67+
mainClass.jvmOptions.toArray,
7268
mainClass.environmentVariables.getOrElse(Nil),
7369
RunMode.Debug
7470
)

0 commit comments

Comments
 (0)