mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Code]: upgrade ts langserver version, reduce the timeout for waiting langserver init
This commit is contained in:
parent
cfbc0faed9
commit
3f746526fd
3 changed files with 6 additions and 10 deletions
|
@ -156,7 +156,7 @@
|
|||
"dependencies": {
|
||||
"@elastic/datemath": "5.0.2",
|
||||
"@elastic/eui": "7.1.0",
|
||||
"@elastic/javascript-typescript-langserver": "^0.1.13",
|
||||
"@elastic/javascript-typescript-langserver": "^0.1.16",
|
||||
"@elastic/lsp-extension": "^0.1.1",
|
||||
"@elastic/node-crypto": "0.1.2",
|
||||
"@elastic/numeral": "2.3.2",
|
||||
|
|
|
@ -42,11 +42,7 @@ export function lspRoute(
|
|||
try {
|
||||
const result = await promiseTimeout(
|
||||
serverOptions.lspRequestTimeoutMs,
|
||||
lspService.sendRequest(
|
||||
`textDocument/${method}`,
|
||||
req.payload,
|
||||
serverOptions.lspRequestTimeoutMs / 2
|
||||
)
|
||||
lspService.sendRequest(`textDocument/${method}`, req.payload, 1000)
|
||||
);
|
||||
return result;
|
||||
} catch (error) {
|
||||
|
|
|
@ -861,10 +861,10 @@
|
|||
oppsy "2.x.x"
|
||||
pumpify "1.3.x"
|
||||
|
||||
"@elastic/javascript-typescript-langserver@^0.1.13":
|
||||
version "0.1.13"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/javascript-typescript-langserver/-/javascript-typescript-langserver-0.1.13.tgz#817add6bf8b92865bfb3024cd094f5f63863dcb3"
|
||||
integrity sha512-TdAIZ/6d9QxNkkb+/iXTX1RZRLfFIaum0HxJBggJSBCqbhsKBBTpIdRjA2Kdf1sYn8bNNkHoRu/BSqS4ZWebxw==
|
||||
"@elastic/javascript-typescript-langserver@^0.1.16":
|
||||
version "0.1.16"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/javascript-typescript-langserver/-/javascript-typescript-langserver-0.1.16.tgz#17757840a50596b5afb7cbdf8f16edf24e79e9e5"
|
||||
integrity sha512-cbKqQZQeanQtMdeCaLzPs5R3Kz6XguoOulFLsPOQ5VnKfkuQ+2fjyP+CKWAUAG+EpxObSmVZv0FR1KBhSYIIpA==
|
||||
dependencies:
|
||||
"@elastic/lsp-extension" "^0.1.1"
|
||||
javascript-typescript-langserver "^2.11.2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue