From 508344da8bbde65b1c951236d4f6da6035560237 Mon Sep 17 00:00:00 2001 From: Yaroslav Lepenkin Date: Tue, 24 Feb 2015 12:24:02 +0300 Subject: [PATCH] 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) --- .../autodetect/DetectedIndentOptionsNotificationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java b/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java index aea68bf6d430..24d745373d4b 100644 --- a/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java +++ b/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java @@ -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() { @Override public boolean process(FileIndentOptionsProvider provider) {