We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e483ba commit c136c17Copy full SHA for c136c17
src/languageClient.ts
@@ -152,6 +152,10 @@ export class LanguageClientManager implements LanguageClient {
152
try {
153
this.startPromise = this._start()
154
await this.startPromise
155
+ // If the initialize request fails, the start method still returns a resolve promise due to a vscode-languageclient bug
156
+ if (!(this.languageClient?.isRunning() ?? false)) {
157
+ throw new Error('Language server not running')
158
+ }
159
started = true
160
} catch (error) {
161
this.languageClient = undefined
0 commit comments