What's the proper way to submit language server settings? #971
Labels
awaiting response
waiting for more info from the author - will eventually close if they don't respond
config
issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension)
language server
This is not a bug-report but help request.
I'm in the process of adding LSP support for Thonny IDE. As it is a Python-only IDE, my only server will be basedpyright.
I've been able to get it mostly working, but I'm stuck in setting language server settings. In particular, I want to use different typeshed directory in MicroPython mode.
I tried setting
initializationOptions
in the params ofinitialize
method like this:but it doesn't look like the new typeshed is being taken into account. The same typeshed directory does work when specified via
stubPath
in pyrightconfig.json.I also tried sending the same settings via
workspace/didChangeConfiguration
but this didn't help either.I tried intecepting the communication between Helix and basedpyright. The
initialize
message sent from Helix didn't look much different from mine, but unfortunately I couldn't see the rest of the message flow. Probably my interception script had some flows.What should I check next? Are there some client capabilities, which are required for making
initializationOptions
work? Or some specific flow of messages?The text was updated successfully, but these errors were encountered: