File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
idea/src/org/jetbrains/kotlin/idea/quickfix/replaceWith Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 17
17
package org.jetbrains.kotlin.idea.quickfix.replaceWith
18
18
19
19
import com.intellij.codeInsight.intention.IntentionAction
20
+ import com.intellij.openapi.application.ApplicationManager
20
21
import com.intellij.openapi.editor.Editor
21
22
import com.intellij.openapi.project.Project
22
23
import com.intellij.psi.SmartPsiElementPointer
@@ -90,6 +91,7 @@ class ReplaceProtectedToPublishedApiCallFix(
90
91
}
91
92
92
93
override fun createAction (diagnostic : Diagnostic ): IntentionAction ? {
94
+ if (! ApplicationManager .getApplication().isUnitTestMode) return null
93
95
val psiElement = diagnostic.psiElement as ? KtExpression ? : return null
94
96
val descriptor = DiagnosticFactory .cast(diagnostic, Errors .PROTECTED_CALL_FROM_PUBLIC_INLINE ).a.let {
95
97
if (it is CallableMemberDescriptor ) DescriptorUtils .getDirectMember(it) else it
You can’t perform that action at this time.
0 commit comments