mirror of
https://github.com/silvanshade/tower-lsp-web-demo.git
synced 2025-01-22 11:47:51 +00:00
Refactoring
This commit is contained in:
parent
b839a553ce
commit
2d37916a87
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ export default class Client extends jsrpc.JSONRPCServerAndClient {
|
|||
// notify "initialized": client --> server
|
||||
this.notify(proto.InitializedNotification.type.method, {});
|
||||
|
||||
await Promise.allSettled(this.afterInitializedHooks.map((f: () => Promise<void>) => f()));
|
||||
await Promise.allSettled([this.processNotifications(), this.processRequests()]);
|
||||
await Promise.all(this.afterInitializedHooks.map((f: () => Promise<void>) => f()));
|
||||
await Promise.all([this.processNotifications(), this.processRequests()]);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/require-await
|
||||
|
|
Loading…
Reference in a new issue