From cec0ba6d458f1dd06a260b5740fdc76e3b5a6980 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Wed, 10 Dec 2008 11:12:13 +0000 Subject: [PATCH] Getting file content even if it is out of sync, bug 258151. --- .../eclipse/cdt/internal/core/parser/InternalParserUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java index 6e962f33de0..068f8c69083 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java @@ -62,7 +62,7 @@ public class InternalParserUtil extends ParserFactory { */ public static CodeReader createWorkspaceFileReader(String path, IFile file) throws CoreException, IOException{ path = normalizePath(path, file); - InputStream in= file.getContents(); + InputStream in= file.getContents(true); try { return new CodeReader(path, file.getCharset(), in); } finally {