mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 21:35:40 +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.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,8 +1098,9 @@ 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue