check directories consistency only for local files
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 30 Apr 2014 10:06:08 +0000 (12:06 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 30 Apr 2014 10:06:57 +0000 (12:06 +0200)
prepare to fix WEB-6584 Files opened by URL should also be able to open scripts used in the file

platform/core-impl/src/com/intellij/psi/SingleRootFileViewProvider.java

index f096dc3c0e88ba70f47fd59aa87024b30714e39c..9dbd8ee9ea07969aa9d408e74527d838370a612e 100644 (file)
@@ -231,7 +231,7 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
       if (isIgnored()) return null;
 
       final Project project = myManager.getProject();
-      if (isPhysical()) { // check directories consistency
+      if (isPhysical() && vFile.isInLocalFileSystem()) { // check directories consistency
         final VirtualFile parent = vFile.getParent();
         if (parent == null) return null;
         final PsiDirectory psiDir = getManager().findDirectory(parent);