Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.jetbrains.python.psi.PyFunction
import com.jetbrains.python.sdk.PythonSdkType
import org.jetbrains.kotlin.idea.util.projectStructure.module
import org.jetbrains.kotlin.idea.util.projectStructure.sdk
import org.utbot.framework.plugin.api.util.LockFile
import org.utbot.intellij.plugin.language.agnostic.LanguageAssistant

object PythonLanguageAssistant : LanguageAssistant() {
Expand Down Expand Up @@ -40,7 +41,7 @@ object PythonLanguageAssistant : LanguageAssistant() {
}

override fun update(e: AnActionEvent) {
e.presentation.isEnabled = getPsiTargets(e) != null
e.presentation.isEnabled = !LockFile.isLocked() && getPsiTargets(e) != null
}

private fun getPsiTargets(e: AnActionEvent): Targets? {
Expand Down