mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[codeInsight] Add isUnitTestMode assertion to InlayHintsUtils#computeCodeVisionUnderReadAction
IJ-CR-126922 GitOrigin-RevId: adddbe1a000be7528eb76614983e2a201f04232c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d62585ca77
commit
aaecc987a7
@@ -7,6 +7,7 @@ import com.intellij.configurationStore.deserializeInto
|
||||
import com.intellij.configurationStore.serialize
|
||||
import com.intellij.lang.Language
|
||||
import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.ReadAction
|
||||
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors
|
||||
import com.intellij.openapi.editor.Editor
|
||||
@@ -295,6 +296,7 @@ object InlayHintsUtils {
|
||||
}
|
||||
else {
|
||||
// In tests [computeCodeVision] is executed in sync mode on EDT
|
||||
assert(ApplicationManager.getApplication().isUnitTestMode)
|
||||
return ReadAction.compute<CodeVisionState, Throwable> {
|
||||
return@compute computable.invoke()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user