Skip to content

Recommended Way to Handle Custom LSP Messages Sent from Client #504

Answered by spoenemann
ballcoach12 asked this question in Q&A
Discussion options

You must be logged in to vote

You can add handlers to the Connection even after calling startLanguageServer. The only concern with that might be that you could miss custom messages that are received right after starting to listen on the connection. I already thought about adding an optional parameter for custom message handlers to that function.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spoenemann
Comment options

Answer selected by ballcoach12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants