microsoft / vscode-languageserver-node

Language server protocol implementation for VSCode. This allows implementing language services in JS/TS running on node.js
MIT License
1.41k stars 320 forks source link

Allow initializationOptions, fillInitializeParams, etc to be async #1283

Open mroch opened 11 months ago

mroch commented 11 months ago

I want to do some async work to compute the initialization options and client capabilities.

Since BaseLanguageClient#initialize is already async, I'd like to make these calls also async:

https://github.com/microsoft/vscode-languageserver-node/blob/f2ff7d55464a1f58f978cb6635bd8865f050553c/client/src/common/client.ts#L1227-L1228

https://github.com/microsoft/vscode-languageserver-node/blob/f2ff7d55464a1f58f978cb6635bd8865f050553c/client/src/common/client.ts#L1232

dbaeumer commented 11 months ago

A PR is welcome.