Skip to content

Commit 3fc9e83

Browse files
authored
fix - Added default value for show what's new boolean. (#1125)
1 parent 62f4cc2 commit 3fc9e83

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferenceInitializer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.microsoft.copilot.eclipse.ui.preferences;
22

33
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
4+
import org.eclipse.core.runtime.preferences.ConfigurationScope;
5+
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
46
import org.eclipse.jface.preference.IPreferenceStore;
57

68
import com.microsoft.copilot.eclipse.core.Constants;
@@ -44,5 +46,8 @@ public void initializeDefaultPreferences() {
4446
}
4547
""");
4648
pref.setDefault(Constants.MCP_TOOLS_STATUS, "{}");
49+
50+
IEclipsePreferences configPref = ConfigurationScope.INSTANCE.getNode(Constants.PLUGIN_ID);
51+
configPref.putBoolean(Constants.AUTO_SHOW_WHAT_IS_NEW, true);
4752
}
4853
}

0 commit comments

Comments
 (0)