elixir-lsp / vscode-elixir-ls

Elixir language support and debugger for VS Code, powered by ElixirLS.
https://marketplace.visualstudio.com/items?itemName=JakeBecker.elixir-ls
MIT License
545 stars 105 forks source link

client.initializeResult can be undefined #358

Closed lukaszsamson closed 1 year ago

lukaszsamson commented 1 year ago

ElixirLS failing to init the wire protocol leaves state = starting and client.initializeResult! = undefined so parseTestsInFileContents crashes. Should a undefined conditional be added here or would that hide the problem and logic to check the extension/client state be added elsewhere?

Reported on slack by @thetamind