mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not build additional blocks if we are not in "reformat context mode" (Fixes some tests, returns previous behaviour to regular reformat)
This commit is contained in:
@@ -181,6 +181,9 @@ class InitialInfoBuilder {
|
||||
if (rootBlock instanceof ReadOnlyBlockInformationProvider) {
|
||||
myReadOnlyBlockInformationProvider = (ReadOnlyBlockInformationProvider)rootBlock;
|
||||
}
|
||||
if (!isInsideFormattingRanges && !myCollectAlignmentsInsideFormattingRange) {
|
||||
return processSimpleBlock(rootBlock, parent, true, index, parentBlock);
|
||||
}
|
||||
|
||||
final List<Block> subBlocks = rootBlock.getSubBlocks();
|
||||
if (subBlocks.isEmpty() || myReadOnlyBlockInformationProvider != null
|
||||
|
||||
Reference in New Issue
Block a user