Retyping: update file system during retyping with background file changes

This commit is contained in:
Alex Plate
2018-12-03 12:26:21 +03:00
parent afbf94ff01
commit 17effeeab8
@@ -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()
}
}
}