Skip to content

Commit

Permalink
[Code]: upgrade ts langserver version, reduce the timeout for waiting…
Browse files Browse the repository at this point in the history
… langserver init
  • Loading branch information
zfy0701 committed Mar 7, 2019
1 parent cfbc0fa commit 3f74652
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions x-pack/plugins/code/server/routes/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3f74652

Please sign in to comment.