microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.54k stars 1.56k forks source link

Address issue with `Attempting to use languageClient before initialized` #12959

Closed Colengms closed 1 week ago

Colengms commented 1 week ago

Fixes: https://github.com/microsoft/vscode-cpptools/issues/12954

It looks like VS Code is trying to send us a didOpen, which is cause by our protocolFilter, before returning from languageClient.start (before we've set this.innerLanguageClient).

This moves the code that depends on this.innerLanguageClient to after that is set.