Feature trainer: add doc and annotation to simplify refactoring Please enter the commit message for your changes.

GitOrigin-RevId: 738e4a0f121055efaa062c1cba4c14182259ea20
This commit is contained in:
Ilya.Kazakevich
2025-04-03 19:23:36 +00:00
committed by intellij-monorepo-bot
parent 6b6ca6af59
commit 3d1254c2a6
7 changed files with 22 additions and 1 deletions
@@ -15,6 +15,7 @@ import com.intellij.openapi.util.UserDataHolder
import com.intellij.openapi.util.UserDataHolderBase
import com.intellij.openapi.util.io.FileUtil
import com.intellij.util.concurrency.annotations.RequiresBackgroundThread
import com.intellij.util.concurrency.annotations.RequiresEdt
import com.intellij.util.ui.FormBuilder
import com.jetbrains.python.PyBundle
import com.jetbrains.python.PySdkBundle
@@ -65,6 +66,7 @@ abstract class PythonBasedLangSupport : AbstractLangSupport() {
val existingSdks = getExistingSdks()
return applyBaseSdk(project, selectedSdk, existingSdks, module)
}
return selectedSdk
if (project.pythonSdk != null) return null // sdk already configured
// Run in parallel, because we can not wait for SDK here
@@ -100,6 +102,7 @@ abstract class PythonBasedLangSupport : AbstractLangSupport() {
}
}
@RequiresEdt
override fun applyProjectSdk(sdk: Sdk, project: Project) {
setReadyToUseSdk(project, project.modules.first(), sdk)
}