From 17effeeab8b54391a7d3fa69e847f0f47b726812 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Mon, 3 Dec 2018 12:26:06 +0300 Subject: [PATCH] Retyping: update file system during retyping with background file changes --- .../src/com/intellij/internal/retype/RetypeSession.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt index 4f0b66cadcf2..f94c39c4a4c8 100644 --- a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt +++ b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt @@ -36,6 +36,7 @@ import com.intellij.openapi.util.Disposer import com.intellij.openapi.util.Key import com.intellij.openapi.vfs.VfsUtil import com.intellij.openapi.vfs.VirtualFile +import com.intellij.openapi.vfs.VirtualFileManager import com.intellij.openapi.wm.IdeFocusManager import com.intellij.ui.EditorNotificationPanel import com.intellij.ui.EditorNotifications @@ -566,6 +567,10 @@ class RetypeSession( file.delete() cancel() } + + WriteCommandAction.runWriteCommandAction(project) { + VirtualFileManager.getInstance().syncRefresh() + } } }