I’ve been trying to hook up two custom LSP requests for nova-yaml for requesting json schemas and providing custom schema associations to files. In the documentation for LanguageServer#onRequest it states that you can use this for non-core LSP messages, but my code isn’t being called:
I saw recently that Nova fixed a bug with LanguageClient to allow extensions to implement custom LSP requests. I can now see that my code inside of the handler for onRequest is being called but it seems that what I return does not get sent in the request’s response.
My code
I can see my debug statements being called in the extension console, but it seems to always pass null back in the response?