OPENIDE #124 Sometimes the welcome screen does not load after reopening the project

(cherry picked from commit a9c2c342db5f4bb7a5614701c8d3f6c5fa8a3e7e)
(cherry picked from commit f4626ab985)
(cherry picked from commit dbccc37402)
(cherry picked from commit 42a7a10ecf)
This commit is contained in:
Nikita Iarychenko
2025-03-19 16:37:22 +04:00
parent d1ac2444a3
commit 170c77b45b

View File

@@ -21,6 +21,7 @@ import com.intellij.openapi.util.Key
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.ui.jcef.JBCefApp
import com.intellij.util.application
import ru.openide.welcome.screen.editor.WelcomeScreenFile
class HtmlEditorProvider : FileEditorProvider, DumbAware {
@@ -31,7 +32,7 @@ class HtmlEditorProvider : FileEditorProvider, DumbAware {
return HtmlFileEditor(project, file, model)
}
override fun accept(project: Project, file: VirtualFile): Boolean = file.getUserData(MODEL_KEY) != null
override fun accept(project: Project, file: VirtualFile): Boolean = file is WelcomeScreenFile
override fun acceptRequiresReadAction(): Boolean = false