mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix usage preview missing from rename refactoring additional rename dialog (IDEA-324363)
fix provided by Gregory.Shrago GitOrigin-RevId: 139a65ce3e3d297eed92143e43cfeaf0d9188261
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fbf4ffdc5a
commit
a317ab473c
@@ -14,6 +14,8 @@ import com.intellij.openapi.actionSystem.DataProvider
|
||||
import com.intellij.openapi.actionSystem.PlatformCoreDataKeys
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.EDT
|
||||
import com.intellij.openapi.application.ModalityState
|
||||
import com.intellij.openapi.application.asContextElement
|
||||
import com.intellij.openapi.application.readAction
|
||||
import com.intellij.openapi.diagnostic.Logger
|
||||
import com.intellij.openapi.editor.*
|
||||
@@ -129,7 +131,7 @@ open class UsagePreviewPanel @JvmOverloads constructor(project: Project,
|
||||
psiFile to document
|
||||
} ?: return
|
||||
|
||||
withContext(Dispatchers.EDT) {
|
||||
withContext(Dispatchers.EDT + ModalityState.any().asContextElement()) {
|
||||
val (psiFile, document) = pair
|
||||
|
||||
if (myEditor == null || document !== myEditor!!.document) {
|
||||
@@ -298,7 +300,7 @@ open class UsagePreviewPanel @JvmOverloads constructor(project: Project,
|
||||
resetEditor(infos!!)
|
||||
}
|
||||
else {
|
||||
withContext(Dispatchers.EDT) {
|
||||
withContext(Dispatchers.EDT + ModalityState.any().asContextElement()) {
|
||||
releaseEditor()
|
||||
removeAll()
|
||||
val newLineIndex = cannotPreviewMessage.indexOf('\n')
|
||||
|
||||
Reference in New Issue
Block a user