no size limit for template data file (EA-64591 - CCE: TemplateDataElementType.parseCo...
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 17:19:31 +0000 (18:19 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 18:26:47 +0000 (19:26 +0100)
platform/lang-impl/src/com/intellij/psi/templateLanguages/TemplateDataElementType.java

index 3d5318b6c7e3a5fc30f78169cfb438632dc5c77c..f5b1170ed2de639e9e93064bd62ba54cf9db085c 100644 (file)
@@ -23,10 +23,7 @@ import com.intellij.lexer.Lexer;
 import com.intellij.lexer.MergingLexerAdapter;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.fileTypes.LanguageFileType;
-import com.intellij.psi.FileViewProvider;
-import com.intellij.psi.PsiFile;
-import com.intellij.psi.PsiManager;
-import com.intellij.psi.SingleRootFileViewProvider;
+import com.intellij.psi.*;
 import com.intellij.psi.impl.DebugUtil;
 import com.intellij.psi.impl.source.DummyHolder;
 import com.intellij.psi.impl.source.PsiFileImpl;
@@ -216,7 +213,7 @@ public class TemplateDataElementType extends IFileElementType implements ITempla
         return language;
       }
     };
-
+    SingleRootFileViewProvider.doNotCheckFileSizeLimit(virtualFile);
     return viewProvider.getPsi(language);
   }