filter out project configuration files silently
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Mon, 21 Sep 2015 11:34:15 +0000 (14:34 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Mon, 21 Sep 2015 11:34:15 +0000 (14:34 +0300)
platform/platform-impl/src/com/intellij/execution/DelayedDocumentWatcher.java

index 1a573cd5b663ac2e79b503a73e1589d58c92f1a6..787d60fbdaebebd4b81228d444888bf2db93b4b3 100644 (file)
@@ -26,6 +26,7 @@ import com.intellij.openapi.editor.event.DocumentEvent;
 import com.intellij.openapi.fileEditor.FileDocumentManager;
 import com.intellij.openapi.fileEditor.FileDocumentManagerAdapter;
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.project.ProjectCoreUtil;
 import com.intellij.openapi.util.Computable;
 import com.intellij.openapi.util.Condition;
 import com.intellij.openapi.util.Disposer;
@@ -128,7 +129,9 @@ public class DelayedDocumentWatcher {
         return;
       }
       if (!myChangedFiles.contains(file)) {
-        // optimization: if possible, avoid possible expensive 'myChangedFileFilter.value(file)' call
+        if (ProjectCoreUtil.isProjectOrWorkspaceFile(file)) {
+          return;
+        }
         if (myChangedFileFilter != null && !myChangedFileFilter.value(file)) {
           return;
         }