Do not ignore stored in document indent options when showing notification. In other case new calculated options can be different from used ones (IDEA-136752)

This commit is contained in:
Yaroslav Lepenkin
2015-02-24 12:26:05 +03:00
parent a1f00bd573
commit 508344da8b
@@ -65,7 +65,7 @@ public class DetectedIndentOptionsNotificationProvider extends EditorNotificatio
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project);
CommonCodeStyleSettings.IndentOptions userOptions = settings.getIndentOptions(psiFile.getFileType());
CommonCodeStyleSettings.IndentOptions detectedOptions = CodeStyleSettingsManager.getSettings(project).getIndentOptionsByFile(
psiFile, null, true,
psiFile, null, false,
new Processor<FileIndentOptionsProvider>() {
@Override
public boolean process(FileIndentOptionsProvider provider) {