File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
adapter/src/main/kotlin/org/javacs/ktda/adapter Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -284,14 +284,23 @@ class KotlinDebugAdapter(
284
284
}
285
285
286
286
override fun continue_ (args : ContinueArguments ) = async.compute {
287
- val success = debuggee!! .threadByID(args.threadId)?.resume()
288
- if (success ? : false ) {
287
+ var success = debuggee!! .threadByID(args.threadId)?.resume() ? : false
288
+ var allThreads = false
289
+
290
+ if (! success) {
291
+ debuggee!! .resume()
292
+ success = true
293
+ allThreads = true
294
+ }
295
+
296
+ if (success) {
289
297
exceptionsPool.clear()
290
298
converter.variablesPool.clear()
291
299
converter.stackFramePool.removeAllOwnedBy(args.threadId)
292
300
}
301
+
293
302
ContinueResponse ().apply {
294
- allThreadsContinued = false
303
+ allThreadsContinued = allThreads
295
304
}
296
305
}
297
306
You can’t perform that action at this time.
0 commit comments