Fix method called before initialize (#667)

wait for init in onInitialize before sending response to the client,
so that client won't try to do request before the lsp handlers are registered.
master
Merrick Luo 2022-12-14 01:05:12 +08:00 committed by GitHub
parent d4ee4b4bcc
commit 0a900b9bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2249,7 +2249,7 @@ connection.onInitialize(async (params: InitializeParams): Promise<InitializeResu
}
}
tw.init()
await tw.init()
return {
capabilities: {