mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[formatter] performat ranges adjusting only in "reformat context" mode
This commit is contained in:
@@ -70,7 +70,7 @@ public class FormatProcessor {
|
||||
myWrapState = new WrapBlocksState(builder, blockIndentOptions);
|
||||
|
||||
FormatTextRanges ranges = options.myAffectedRanges;
|
||||
if (ranges != null && Registry.is("smart.reformat.vcs.changes")) {
|
||||
if (ranges != null && options.myReformatContext && Registry.is("smart.reformat.vcs.changes")) {
|
||||
AdjustFormatRangesState adjustRangesState = new AdjustFormatRangesState(block, ranges);
|
||||
myStateProcessor = new StateProcessor(adjustRangesState);
|
||||
myStateProcessor.setNextState(myWrapState);
|
||||
|
||||
Reference in New Issue
Block a user