tliron / glsp

Language Server Protocol SDK for Go
Apache License 2.0
184 stars 25 forks source link

Add method to get stdio connection #16

Closed stephenafamo closed 2 years ago

stephenafamo commented 2 years ago

When using this to build a language server, I wanted to send notifications async.

Instead of passing around the context from individual methods, it made more sense to just keep the original connection.

Also, this method makes it possible to implement graceful shutdowns

tliron commented 2 years ago

Thank you! I agree, there should be more user control here.