@@ -176,7 +176,7 @@ fun start(args: Array<String>) {
176
176
else {
177
177
val euaDocument = euaDocumentDeferred.await()
178
178
val baseLaF = initUiJob.await()
179
- withContext( subtask(" show eua" ) ) {
179
+ subtask(" show eua" ) {
180
180
showEuaIfNeeded(euaDocument, baseLaF)
181
181
}
182
182
}
@@ -187,7 +187,7 @@ fun start(args: Array<String>) {
187
187
configImportNeededDeferred.join()
188
188
189
189
val (configPath, systemPath) = pathDeferred.await()
190
- withContext( subtask(" system dirs checking" ) ) {
190
+ subtask(" system dirs checking" ) {
191
191
if (! checkSystemDirs(configPath, systemPath)) {
192
192
exitProcess(AppExitCodes .DIR_CHECK_FAILED )
193
193
}
@@ -268,11 +268,11 @@ fun start(args: Array<String>) {
268
268
// this must happen after locking system dirs
269
269
val log = logDeferred.await()
270
270
271
- withContext( subtask(" system libs setup" ) ) {
271
+ subtask(" system libs setup" ) {
272
272
setupSystemLibraries()
273
273
}
274
274
275
- withContext( subtask(" system libs loading" ) + Dispatchers .IO ) {
275
+ subtask(" system libs loading" , Dispatchers .IO ) {
276
276
JnaLoader .load(log)
277
277
if (SystemInfoRt .isWindows) {
278
278
IdeaWin32 .isAvailable()
@@ -289,7 +289,7 @@ fun start(args: Array<String>) {
289
289
launch {
290
290
initUiJob.join()
291
291
292
- withContext( subtask(" mac app init" ) ) {
292
+ subtask(" mac app init" ) {
293
293
MacOSApplicationProvider .initApplication(log)
294
294
}
295
295
}
@@ -310,7 +310,7 @@ fun start(args: Array<String>) {
310
310
311
311
val telemetryInitJob = launch(asyncDispatcher) {
312
312
appInfoDeferred.join()
313
- withContext( subtask(" opentelemetry configuration" ) ) {
313
+ subtask(" opentelemetry configuration" ) {
314
314
TraceManager .init ()
315
315
}
316
316
}
@@ -873,7 +873,7 @@ private fun CoroutineScope.lockSystemDirs(checkConfig: Boolean,
873
873
874
874
return async(Dispatchers .IO ) {
875
875
val (configPath, systemPath) = pathDeferred.await()
876
- withContext( subtask(" system dirs locking" ) ) {
876
+ subtask(" system dirs locking" ) {
877
877
// this check must be performed before system directories are locked
878
878
val importNeeded = checkConfig &&
879
879
(! Files .exists(configPath) || Files .exists(configPath.resolve(ConfigImportHelper .CUSTOM_MARKER_FILE_NAME )))
0 commit comments