Skip to content
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

LSP: Handling the 'initialize' method #519

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Conversation

kengorab
Copy link
Owner

This adds a ton of code to the json std module to support json encoding/decoding of the initialize request and response json rpc messages as part of the LSP lifecycle. This can correctly receive an initialize request and decode it to a data structure, and respond with an InitializeResult object.

This code currently fails when it is sent the next message type ( textDocument/didOpen) which is not yet implemented.

This adds a ton of code to the `json` std module to support json
encoding/decoding of the `initialize` request and response json rpc
messages as part of the LSP lifecycle. This can correctly receive an
`initialize` request and decode it to a data structure, and respond with
an `InitializeResult` object.

This code currently fails when it is sent the next message type (
`textDocument/didOpen`) which is not yet implemented.
Refactor the language server to be a bit more organized. Also, handle
the basic textDocument messages, for which the project is typechecked
and any errors are emitted as Diagnostics.
@kengorab kengorab merged commit c629605 into master Dec 17, 2024
1 check passed
@kengorab kengorab deleted the lsp-initialize-method branch December 17, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant