mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Marshal file opening from external app to EDT (IDEA-301392)
GitOrigin-RevId: c9c6b165f4da3093cf8b009bcccade9434401954
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8a4487fa69
commit
4c24ef53d9
@@ -531,7 +531,9 @@ object ProjectUtil {
|
||||
else {
|
||||
val virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtilRt.toSystemIndependentName(file.toString()))
|
||||
if (virtualFile != null && virtualFile.isValid) {
|
||||
OpenFileAction.openFile(virtualFile, projectToClose)
|
||||
withContext(Dispatchers.EDT) {
|
||||
OpenFileAction.openFile(virtualFile, projectToClose)
|
||||
}
|
||||
}
|
||||
result = projectToClose
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user