User: kyle wood Date: 04 Aug 24 03:26 Revision: ab0ec84950e6d2f6bf7e597ba17d3ff81c62f506 Summary: Replace namedChildSCope with childScope TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9552&personal=false Index: src/main/kotlin/creator/custom/CreatorContext.kt =================================================================== --- src/main/kotlin/creator/custom/CreatorContext.kt (revision 5a17d89a42ed3fb3c4a834b203dd5e9bfe183594) +++ src/main/kotlin/creator/custom/CreatorContext.kt (revision ab0ec84950e6d2f6bf7e597ba17d3ff81c62f506) @@ -27,7 +27,7 @@ import com.intellij.openapi.application.ModalityState import com.intellij.openapi.application.asContextElement import com.intellij.openapi.observable.properties.PropertyGraph -import com.intellij.platform.util.coroutines.namedChildScope +import com.intellij.platform.util.coroutines.childScope import kotlin.coroutines.CoroutineContext import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers @@ -53,5 +53,5 @@ /** * A general purpose scope dependent of the main creator scope, cancelled when the creator is closed. */ - fun childScope(name: String): CoroutineScope = scope.namedChildScope(name) + fun childScope(name: String): CoroutineScope = scope.childScope(name) } Index: src/main/kotlin/creator/custom/TemplateService.kt =================================================================== --- src/main/kotlin/creator/custom/TemplateService.kt (revision 5a17d89a42ed3fb3c4a834b203dd5e9bfe183594) +++ src/main/kotlin/creator/custom/TemplateService.kt (revision ab0ec84950e6d2f6bf7e597ba17d3ff81c62f506) @@ -25,7 +25,7 @@ import com.intellij.openapi.diagnostic.thisLogger import com.intellij.openapi.project.Project import com.intellij.openapi.startup.ProjectActivity -import com.intellij.platform.util.coroutines.namedChildScope +import com.intellij.platform.util.coroutines.childScope import com.intellij.util.application import kotlinx.coroutines.CoroutineScope @@ -47,8 +47,7 @@ pendingActions.remove(project.locationHash)?.invoke() } - @Suppress("UnstableApiUsage") // namedChildScope is Internal right now but has been promoted to Stable in 2024.2 - fun scope(name: String): CoroutineScope = scope.namedChildScope(name) + fun scope(name: String): CoroutineScope = scope.childScope(name) companion object {