-
Notifications
You must be signed in to change notification settings - Fork 59
-
Notifications
You must be signed in to change notification settings - Fork 59
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
haxe-language-server doesn't work until the first onDidChangeConfiguration event #359
Comments
I think it's actually part of the LSP spec that there's an initial |
@Gama11 I'm not seeing that mentioned in the spec... |
I might be wrong, but then we should actually change this as it would be a violation of the spec, not document it. I think other language clients actually struggled with this too. |
I ran into this as well, it required a lot of debugging and code tracing to figure out what was going wrong. |
We might want to rework this workflow, apparently there's Adding this for reference, will look into this later: microsoft/language-server-protocol#567 |
This is a request to document in the readme that there's a requirement to send a didChangeConfiguration notification as part of initializing the Haxe language server.
Making the notification optional would also be fine.
I ran into this issue trying to get the Haxe language server working in Moonshine IDE. Everything seemed to work up through the initialized notification, and then the language server didn't accept any further requests, like hover, definition or completion.
Luckily, I'm the one who implemented the client side of the protocol in Moonshine, so I can ensure that this notification is always sent. In my initial tests, adding this notification after init doesn't seem to hurt any existing language servers that I've previously integrated that worked fine without it.
The text was updated successfully, but these errors were encountered: