microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 170 forks source link

Remove `waitForInit` from LanguageServer #1483

Closed swernli closed 2 years ago

swernli commented 2 years ago

This change simplifies the synchronization of the LanguageServer by removing the waitForInit ManualResetEvent. Since LSP clients should not send further messages until they have received the response to init and the change adjusts the rpc listener to not connect until after the object is constructed, the synchronization should no longer be needed.