Closed rchl closed 4 years ago
That custom workspace/configuration
handler cannot work, because looking up a handler is first done in the Session object. If it's not found there, only then do we look it up in AbstractPlugin.
But we can change the behavior of course.
We could potentially have a workspace/configuration
-specific hook to be able to alter the returned configuration?
Yes I think that would be best. It's probably not a good idea to first lookup handlers in the plugin class (we've already been there with inheritance).
I can integrate and release it already. The on_workspace_configuration
will not work until next release of LSP but it's fine as it's an optional bonus.
Todo
workspace/configuration
request, using new API (based on the previous attempt at https://github.com/sublimelsp/LSP-eslint/blob/ec1157fad26af60e95b198b6f836388a35ae52f7/plugin.py#L224-L237)