Don't bother terminating daemon if operating over file copy

This commit is contained in:
Maxim Shafirov
2011-08-12 14:43:09 +04:00
parent 974e6ea289
commit 5daf2dc09c
@@ -286,7 +286,7 @@ class DaemonListeners implements Disposable {
if (project != null && project != myProject) return false;
// cached is essential here since we do not want to create PSI file in alien project
PsiFile psiFile = PsiDocumentManager.getInstance(project == null ? myProject : project).getCachedPsiFile(document);
return psiFile != null;
return psiFile != null && psiFile.getOriginalFile() == psiFile;
}
public void dispose() {