Skip to content

Commit a51d4bd

Browse files
committed
added missing Eclipse pref handling for web configs code lens for controller classes
1 parent 24c8ff8 commit a51d4bd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/BootJavaPreferencesPage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ protected void createFieldEditors() {
5959
// Show AOT generated query over Data Query methods
6060
addField(new BooleanFieldEditor(Constants.PREF_CODELENS_QUERY_METHODS, "Show CodeLens with AOT generated query over Data Query methods", fieldEditorParent));
6161

62+
// Show Web Config code lens
63+
addField(new BooleanFieldEditor(Constants.PREF_CODELENS_WEB_CONFIGS_ON_CONTROLLER_CLASSES, "Show CodeLens with Web Config Details for controllers", fieldEditorParent));
64+
6265
// Experimental Beans tree
6366
addField(new BooleanFieldEditor(Constants.PREF_BEANS_STRUCTURE_TREE, "Beans structure tree in the outline view (experimental)", fieldEditorParent));
6467

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/PrefsInitializer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public void initializeDefaultPreferences() {
6767
preferenceStore.setDefault(Constants.PREF_BEANS_STRUCTURE_TREE, true);
6868
preferenceStore.setDefault(Constants.PREF_SYMBOLS_FROM_NEW_INDEX, true);
6969
preferenceStore.setDefault(Constants.PREF_CODELENS_QUERY_METHODS, true);
70+
preferenceStore.setDefault(Constants.PREF_CODELENS_WEB_CONFIGS_ON_CONTROLLER_CLASSES, true);
7071

7172
preferenceStore.setDefault(Constants.PREF_AI_ENABLE_MCP, true);
7273
}

0 commit comments

Comments
 (0)