-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the configuration after workspace/didChangeConfiguration
requests
#414
Comments
I'd like to bump this question, @michaelpj perhaps? |
What we currently do with
So at the moment you need to add your own |
Thanks for the information! I'll try implementing our configuration management using this info and get back to you if I have any more questions. |
Ok, I've come across a problem with this setup. When the configuration is changed in VSCode, the client sends a When the server receives a The problem is that in this flow of logic, there is no way to ensure that the config is actually updated properly, if the client is sending a null notification. The I think the easiest way to solve this issue would be to add a |
Ah indeed I was wrong, we do handle this by default. Having |
I created the PR here: #418 |
Merging #418 solved this problem, so if there's no objections in a couple of days, I'll close this issue. |
We now automatically call |
I notice that
lsp
now has a functiongetConfig
to get the client configuration "as set via theinitialize
andworkspace/didChangeConfiguration
requests." I am a little confused how the configuration is supposed to be updated, however.Our language server has an implementation of
onConfigurationChange
that parses the changed configuration. When we try changing the configuration, thelsp
library complains with an errorlsp:no handler for: SWorkspaceDidChangeConfiguration
. I assume this means that we should also provide an implemention for theworkspace/didChangeConfiguration
notification. However, it's unclear to me what this handler should be doing, since it seems all the relevant work is already done by theonConfigurationChange
function.Therefore, my question is, what functionality should the
onConfigurationChange
implementation provide, what functionality should theworkspace/didChangeConfiguration
handler provide, and what is the difference between them?The text was updated successfully, but these errors were encountered: