mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rethrow PCE
GitOrigin-RevId: 02e35e45aac65f2c21bb96fea0868c9a81ac2e4f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a7796cfda8
commit
b916a8e911
+4
-1
@@ -7,13 +7,14 @@ import com.intellij.openapi.application.ReadAction
|
||||
import com.intellij.openapi.diagnostic.logger
|
||||
import com.intellij.openapi.extensions.ExtensionPointName
|
||||
import com.intellij.openapi.module.ModuleManager
|
||||
import com.intellij.openapi.progress.ProcessCanceledException
|
||||
import com.intellij.openapi.progress.ProgressManager.checkCanceled
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.projectRoots.SdkType
|
||||
import com.intellij.openapi.roots.ui.configuration.UnknownSdk
|
||||
import com.intellij.openapi.roots.ModuleJdkOrderEntry
|
||||
import com.intellij.openapi.roots.ModuleRootManager
|
||||
import com.intellij.openapi.roots.ProjectRootManager
|
||||
import com.intellij.openapi.roots.ui.configuration.UnknownSdk
|
||||
import com.intellij.util.concurrency.AppExecutorUtil
|
||||
import java.util.*
|
||||
import java.util.function.Consumer
|
||||
@@ -115,6 +116,8 @@ class UnknownSdkCollector(private val myProject: Project) {
|
||||
EP_NAME.forEachExtensionSafe {
|
||||
val contrib = try {
|
||||
it.contributeUnknownSdks(myProject)
|
||||
} catch (e: ProcessCanceledException) {
|
||||
throw e
|
||||
} catch (t: Throwable) {
|
||||
LOG.warn("Failed to contribute SDKs with ${it.javaClass.name}. ${t.message}", t)
|
||||
listOf<UnknownSdk>()
|
||||
|
||||
Reference in New Issue
Block a user