Skip to content

Commit 26c655d

Browse files
committed
Execute 'attach' on launcherAsync
1 parent 6230348 commit 26c655d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adapter/src/main/kotlin/org/javacs/ktda/adapter/KotlinDebugAdapter.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,8 @@ class KotlinDebugAdapter(
181181
LOG.info("Sent exit event")
182182
}
183183

184-
override fun attach(args: Map<String, Any>) = async.execute {
185-
// Fix a deadlock problem by commenting the following line.
186-
//performInitialization()
184+
override fun attach(args: Map<String, Any>) = launcherAsync.execute {
185+
performInitialization()
187186

188187
val projectRoot = (args["projectRoot"] as? String)?.let { Paths.get(it) }
189188
?: throw missingRequestArgument("launch", "projectRoot")

0 commit comments

Comments
 (0)