mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PushedFilePropertiesUpdaterImpl: remove deprecated transaction call
GitOrigin-RevId: 1b4637f56e1735b7654313e2a81e93f69e471831
This commit is contained in:
committed by
intellij-monorepo-bot
parent
836e597f82
commit
7362b215d7
+3
-6
@@ -423,12 +423,9 @@ public final class PushedFilePropertiesUpdaterImpl extends PushedFilePropertiesU
|
||||
private static void reloadPsi(final VirtualFile file, final Project project) {
|
||||
final FileManagerImpl fileManager = (FileManagerImpl)PsiManagerEx.getInstanceEx(project).getFileManager();
|
||||
if (fileManager.findCachedViewProvider(file) != null) {
|
||||
Runnable runnable = () -> WriteAction.run(() -> fileManager.forceReload(file));
|
||||
if (ApplicationManager.getApplication().isDispatchThread()) {
|
||||
runnable.run();
|
||||
} else {
|
||||
TransactionGuard.submitTransaction(project, runnable);
|
||||
}
|
||||
GuiUtils.invokeLaterIfNeeded(() -> WriteAction.run(() -> fileManager.forceReload(file)),
|
||||
ModalityState.defaultModalityState(),
|
||||
project.getDisposed());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user