Plugin User Preferences are ignored #4773
Labels
bug
bugs found in the application
plug-in system
issues related to the plug-in system
preferences
issues related to preferences
I tried to change the startup parameters for jdt.ls in the vscode-java plugin (installed via "deploy plugin by id") by setting the preference key
java.jdt.ls.vmargs
. However, the java process would always use the default value for that preference.Debugging in Chrome showed that the preference value from the user preferences is rejected, because the key
java.jdt.ls.vmargs
is not present in the combined preferences schema in thePreferenceSchemaProvider
. In fact, no preference prefixed "java" was present in the schema when the user preferences were validated and thus all java preferences would be rejected as invalid.The problem seems to be that the user preferences are read before the contributions from
PluginContributionHandler
.Note that this problem seems to be timing dependent: sometimes the schema update happens before the reading of the user prefs and everything works fine.
The text was updated successfully, but these errors were encountered: