-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
Description
Firstly thank you for implementing #731 - once configured it works well. 👍
That said it took me a while (hours of debugging) to realize that this is Sublime-level option and as such has to be set in the global Preferences.sublime-settings.
The documentation admittedly does mention this and I did actually read it as part of my lengthy debugging process, but it wasn't obvious to me even after reading it.
I suspect the debugging process was particularly painful because of a few facts:
- Sublime can't validate plugin-specific settings in the global context to tell you particular option is (un)expected or (in)valid, it's just something Sublime itself ignores
- Relatedly plugin-level settings is also treated as an arbitrary data structure and the plugin doesn't seem to validate it (possibly to allow backwards compatibility?). It will therefore just ignore
lsp_format_on_savein plugin settings. - I have zero experience with developing Sublime extensions, but I would never have thought that plugins would be allowed to store plugin-level settings in a global namespace.
Would you be open to making this plugin and/or client-level settings, i.e. configurable in LSP.sublime-settings on the root level there, or per each client?
matthewmueller