mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Call modifiers and cache code style only for physical files
This commit is contained in:
@@ -74,6 +74,9 @@ public class CodeStyle {
|
||||
CodeStyleSettings fileSettings = provider.getSettings(file);
|
||||
if (fileSettings != null) return fileSettings;
|
||||
}
|
||||
if (!file.isPhysical()) {
|
||||
return getSettings(file.getProject());
|
||||
}
|
||||
return CodeStyleCachingUtil.getCachedCodeStyle(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user