mirror of
https://github.com/silvanshade/tower-lsp-web-demo.git
synced 2025-01-22 11:47:51 +00:00
Cleanup
This commit is contained in:
parent
2d37916a87
commit
df1a4c0094
1 changed files with 0 additions and 2 deletions
|
@ -25,7 +25,6 @@ export default class Client extends jsrpc.JSONRPCServerAndClient {
|
||||||
this.#fromServer = fromServer;
|
this.#fromServer = fromServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
async start(): Promise<void> {
|
async start(): Promise<void> {
|
||||||
// process "window/logMessage": client <- server
|
// process "window/logMessage": client <- server
|
||||||
this.addMethod(proto.LogMessageNotification.type.method, (params) => {
|
this.addMethod(proto.LogMessageNotification.type.method, (params) => {
|
||||||
|
@ -70,7 +69,6 @@ export default class Client extends jsrpc.JSONRPCServerAndClient {
|
||||||
await Promise.all([this.processNotifications(), this.processRequests()]);
|
await Promise.all([this.processNotifications(), this.processRequests()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
async processNotifications(): Promise<void> {
|
async processNotifications(): Promise<void> {
|
||||||
for await (const notification of this.#fromServer.notifications) {
|
for await (const notification of this.#fromServer.notifications) {
|
||||||
await this.receiveAndSend(notification);
|
await this.receiveAndSend(notification);
|
||||||
|
|
Loading…
Reference in a new issue