@@ -80,7 +80,7 @@ class KotlinDebugAdapter(
80
80
return response
81
81
}
82
82
83
- override fun launch (args : Map <String , Any >) = launcherAsync.run {
83
+ override fun launch (args : Map <String , Any >) = launcherAsync.execute {
84
84
performInitialization()
85
85
86
86
val projectRoot = (args[" projectRoot" ] as ? String )?.let { Paths .get(it) }
@@ -169,7 +169,7 @@ class KotlinDebugAdapter(
169
169
LOG .info(" Sent exit event" )
170
170
}
171
171
172
- override fun attach (args : Map <String , Any >) = async.run {
172
+ override fun attach (args : Map <String , Any >) = async.execute {
173
173
performInitialization()
174
174
175
175
val projectRoot = (args[" projectRoot" ] as ? String )?.let { Paths .get(it) }
@@ -220,7 +220,7 @@ class KotlinDebugAdapter(
220
220
221
221
override fun restart (args : RestartArguments ): CompletableFuture <Void > = notImplementedDAPMethod()
222
222
223
- override fun disconnect (args : DisconnectArguments ) = async.run {
223
+ override fun disconnect (args : DisconnectArguments ) = async.execute {
224
224
debuggee?.exit()
225
225
}
226
226
@@ -245,7 +245,7 @@ class KotlinDebugAdapter(
245
245
246
246
override fun setFunctionBreakpoints (args : SetFunctionBreakpointsArguments ): CompletableFuture <SetFunctionBreakpointsResponse > = notImplementedDAPMethod()
247
247
248
- override fun setExceptionBreakpoints (args : SetExceptionBreakpointsArguments ) = async.run {
248
+ override fun setExceptionBreakpoints (args : SetExceptionBreakpointsArguments ) = async.execute {
249
249
args.filters
250
250
.map(converter::toInternalExceptionBreakpoint)
251
251
.toSet()
@@ -263,15 +263,15 @@ class KotlinDebugAdapter(
263
263
}
264
264
}
265
265
266
- override fun next (args : NextArguments ) = async.run {
266
+ override fun next (args : NextArguments ) = async.execute {
267
267
debuggee!! .threadByID(args.threadId)?.stepOver()
268
268
}
269
269
270
- override fun stepIn (args : StepInArguments ) = async.run {
270
+ override fun stepIn (args : StepInArguments ) = async.execute {
271
271
debuggee!! .threadByID(args.threadId)?.stepInto()
272
272
}
273
273
274
- override fun stepOut (args : StepOutArguments ) = async.run {
274
+ override fun stepOut (args : StepOutArguments ) = async.execute {
275
275
debuggee!! .threadByID(args.threadId)?.stepOut()
276
276
}
277
277
@@ -283,7 +283,7 @@ class KotlinDebugAdapter(
283
283
284
284
override fun goto_ (args : GotoArguments ): CompletableFuture <Void > = notImplementedDAPMethod()
285
285
286
- override fun pause (args : PauseArguments ) = async.run {
286
+ override fun pause (args : PauseArguments ) = async.execute {
287
287
val threadId = args.threadId
288
288
val success = debuggee!! .threadByID(threadId)?.pause()
289
289
if (success ? : false ) {
0 commit comments