1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 13:55:39 +02:00

Fix for initial folding computation

This commit is contained in:
Anton Leherbauer 2006-10-13 11:09:19 +00:00
parent ce35f1444b
commit 83d65a28ca

View file

@ -1090,6 +1090,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
ctx.fAST= ast; ctx.fAST= ast;
ctx.fASTPositionConverter= astProvider.getActivePositionConverter(getInputElement()); ctx.fASTPositionConverter= astProvider.getActivePositionConverter(getInputElement());
fInitialASTReconcile= false; fInitialASTReconcile= false;
computeFoldingStructure(ast, ctx);
} }
return Status.OK_STATUS; return Status.OK_STATUS;
} }
@ -1097,10 +1098,11 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
if (!status.isOK()) { if (!status.isOK()) {
CUIPlugin.getDefault().log(status); CUIPlugin.getDefault().log(status);
} }
} } else {
computeFoldingStructure(ast, ctx); computeFoldingStructure(ast, ctx);
} }
} }
}
/** /**
* Compute folding structure of the preprocessor branches for the given AST. * Compute folding structure of the preprocessor branches for the given AST.