We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c880c61 commit c6817d3Copy full SHA for c6817d3
client/src/node/main.ts
@@ -502,6 +502,17 @@ export class LanguageClient extends BaseLanguageClient {
502
}
503
504
return Promise.reject<MessageTransports>(new Error(`Unsupported server configuration ` + JSON.stringify(server, null, 4)));
505
+ }).finally(() => {
506
+ if (this._serverProcess !== undefined) {
507
+ this._serverProcess.on('exit', (code, signal) => {
508
+ if (code !== null) {
509
+ this.error(`Server process exited with code ${code}.`, undefined, false);
510
+ }
511
+ if (signal !== null) {
512
+ this.error(`Server process exited with signal ${signal}.`, undefined, false);
513
514
+ });
515
516
});
517
518
0 commit comments