Setting to "elide prefix" for properties completions
This commit is contained in:
@@ -48,4 +48,6 @@ public class Constants {
|
||||
|
||||
public static final String PREF_JPQL = "boot-java.jpql";
|
||||
|
||||
public static final String PREF_PROPS_COMPLETIONS_ELIDE_PREFIX = "boot-java.properties.completions.elide-prefix";
|
||||
|
||||
}
|
||||
|
||||
@@ -223,6 +223,12 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
|
||||
"properties-metadata", preferenceStore.getString(Constants.PREF_COMMON_PROPS_METADATA)
|
||||
));
|
||||
|
||||
bootJavaObj.put("properties", Map.of(
|
||||
"completions", Map.of(
|
||||
"elide-prefix", preferenceStore.getBoolean(Constants.PREF_PROPS_COMPLETIONS_ELIDE_PREFIX)
|
||||
)
|
||||
));
|
||||
|
||||
settings.put("boot-java", bootJavaObj);
|
||||
|
||||
settings.put("http", createHttpProxySettings());
|
||||
|
||||
@@ -45,6 +45,9 @@ public class BootJavaPreferencesPage extends FieldEditorPreferencePage implement
|
||||
|
||||
// JPQL Support switch
|
||||
addField(new BooleanFieldEditor(Constants.PREF_JPQL, "JPA Query language support", fieldEditorParent));
|
||||
|
||||
// Properties Completions - Elide common prefix
|
||||
addField(new BooleanFieldEditor(Constants.PREF_PROPS_COMPLETIONS_ELIDE_PREFIX, "Elide common prefix in property key auto completions", fieldEditorParent));
|
||||
|
||||
// Experimental Modulith support
|
||||
addField(new BooleanFieldEditor(Constants.PREF_MODULITH, "Spring Boot Modulith automatic project tracking and metadata update", fieldEditorParent));
|
||||
|
||||
@@ -66,6 +66,8 @@ public class PrefsInitializer extends AbstractPreferenceInitializer {
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_JPQL, true);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_PROPS_COMPLETIONS_ELIDE_PREFIX, false);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user