From 4ad65f8651e29a6c9ee6803098387b3d139b5248 Mon Sep 17 00:00:00 2001 From: sebthom Date: Mon, 4 Mar 2024 19:36:38 +0100 Subject: [PATCH] fix: disabling indentation rules not working --- .../registry/LanguageConfigurationRegistryManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/registry/LanguageConfigurationRegistryManager.java b/org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/registry/LanguageConfigurationRegistryManager.java index ce94e6217..197e17a6a 100644 --- a/org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/registry/LanguageConfigurationRegistryManager.java +++ b/org.eclipse.tm4e.languageconfiguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/registry/LanguageConfigurationRegistryManager.java @@ -224,7 +224,10 @@ void save() throws BackingStoreException { final var definitions = new ArrayList(); userDefinitions.values().forEach(definitions::add); pluginDefinitions.values().forEach(def -> { - if (!(def.isBracketAutoClosingEnabled() && def.isMatchingPairsEnabled() && def.isOnEnterEnabled())) { + if (!(def.isBracketAutoClosingEnabled() + && def.isMatchingPairsEnabled() + && def.isOnEnterEnabled() + && def.isIndentRulesEnabled())) { definitions.add(def); } });