mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-248653: add VirtualFile.isValid check
(cherry picked from commit 8004a7ddff7dfdca192ba4bec6a725fcaa77404a) IJ-CR-220885 GitOrigin-RevId: 67214651519bcb98832b0f51807872d8584911c8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
88b565d81a
commit
77efa286a4
+1
@@ -66,6 +66,7 @@ private suspend fun requestRestartToCompleteEssentialHighlighting(project: Proje
|
||||
val hasFilesWithEssentialHighlightingConfigured = openFiles
|
||||
.any { file ->
|
||||
readAction {
|
||||
if (!file.isValid) return@readAction false
|
||||
val psiFile = psiFileManager.findFile(file) ?: return@readAction false
|
||||
highlightingSettingsPerFile.getHighlightingSettingForRoot(psiFile) == FileHighlightingSetting.ESSENTIAL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user