From 0c916698b82fbd3c1f2e38b50c9006933ad34db2 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 1 Jun 2012 22:58:44 +0400 Subject: [PATCH] A workaround for VFS synchronization problem --- idea/src/org/jetbrains/jet/plugin/quickfix/JsModuleSetUp.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/quickfix/JsModuleSetUp.java b/idea/src/org/jetbrains/jet/plugin/quickfix/JsModuleSetUp.java index b0516494c0c..b2bc6a2b8fb 100644 --- a/idea/src/org/jetbrains/jet/plugin/quickfix/JsModuleSetUp.java +++ b/idea/src/org/jetbrains/jet/plugin/quickfix/JsModuleSetUp.java @@ -62,6 +62,10 @@ public final class JsModuleSetUp { File file = new File(rootDir, JsModuleDetector.INDICATION_FILE_NAME); if (file.exists()) { notifyInfo("File " + file.getName() + " already exists."); + // If the notification in the editor did not disappear due to + // slow file system events, this will remove the notification + // when the user clicks for the second time + refreshRootDir(project, continuation); return; }