mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Fix for initial folding computation
This commit is contained in:
parent
ce35f1444b
commit
83d65a28ca
1 changed files with 3 additions and 1 deletions
|
@ -1090,6 +1090,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
ctx.fAST= ast;
|
||||
ctx.fASTPositionConverter= astProvider.getActivePositionConverter(getInputElement());
|
||||
fInitialASTReconcile= false;
|
||||
computeFoldingStructure(ast, ctx);
|
||||
}
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
@ -1097,8 +1098,9 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
if (!status.isOK()) {
|
||||
CUIPlugin.getDefault().log(status);
|
||||
}
|
||||
} else {
|
||||
computeFoldingStructure(ast, ctx);
|
||||
}
|
||||
computeFoldingStructure(ast, ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue