From 6a5ec316d1de2c41ce8bc75fdf3b64e90646cdb2 Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Fri, 8 Jul 2022 21:40:29 +0200 Subject: [PATCH] fix the lsp cli for vim users, thanks @xuanduc! --- .changeset/dual-poems-call.md | 7 +++++++ custom-words.txt | 2 ++ packages/graphql-language-service-server/package.json | 3 ++- yarn.lock | 4 ++-- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .changeset/dual-poems-call.md diff --git a/.changeset/dual-poems-call.md b/.changeset/dual-poems-call.md new file mode 100644 index 00000000000..208ccf90aa6 --- /dev/null +++ b/.changeset/dual-poems-call.md @@ -0,0 +1,7 @@ +--- +'graphql-language-service-server': patch +'graphql-language-service-cli': patch +--- + +Fix error with LSP crash for CLI users #2230. `vscode-graphql` not impacted - rather, `nvim.coc`, maybe other clients who use CLI directly). recreation of #2546 by [@xuanduc987](https://github.com/xuanduc987, thank you!) + diff --git a/custom-words.txt b/custom-words.txt index 3609e83fcfe..4c9d879a625 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -93,6 +93,7 @@ wincent yoshiakis zouxuoz Divy +xuanduc // packages and tools argparse @@ -235,3 +236,4 @@ typeahead typeaheads unparsable randomthing + diff --git a/packages/graphql-language-service-server/package.json b/packages/graphql-language-service-server/package.json index ed7111aa4b0..b51ce9e0679 100644 --- a/packages/graphql-language-service-server/package.json +++ b/packages/graphql-language-service-server/package.json @@ -44,6 +44,8 @@ "nullthrows": "^1.0.0", "vscode-jsonrpc": "^5.0.1", "vscode-languageserver": "^6.1.1", + "vscode-languageserver-protocol": "~3.15.3", + "vscode-languageserver-types": "~3.15.1", "fast-glob": "^3.2.7", "vscode-uri": "^3.0.2", "glob": "^7.2.0", @@ -53,7 +55,6 @@ "@types/mkdirp": "^1.0.1", "cross-env": "^7.0.2", "graphql": "^16.4.0", - "vscode-languageserver-protocol": "^3.15.3", "vscode-languageserver-types": "^3.15.1" } } diff --git a/yarn.lock b/yarn.lock index d2a53b446bf..d751fcedb4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19328,7 +19328,7 @@ vscode-languageserver-protocol@3.14.1: vscode-jsonrpc "^4.0.0" vscode-languageserver-types "3.14.0" -vscode-languageserver-protocol@^3.15.3: +vscode-languageserver-protocol@^3.15.3, vscode-languageserver-protocol@~3.15.3: version "3.15.3" resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.3.tgz#3fa9a0702d742cf7883cb6182a6212fcd0a1d8bb" integrity sha512-zrMuwHOAQRhjDSnflWdJG+O2ztMWss8GqUUB8dXLR/FPenwkiBNkMIJJYfSN6sgskvsF0rHAoBowNQfbyZnnvw== @@ -19341,7 +19341,7 @@ vscode-languageserver-types@3.14.0: resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.14.0.tgz#d3b5952246d30e5241592b6dde8280e03942e743" integrity sha512-lTmS6AlAlMHOvPQemVwo3CezxBp0sNB95KNPkqp3Nxd5VFEnuG1ByM0zlRWos0zjO3ZWtkvhal0COgiV1xIA4A== -vscode-languageserver-types@3.15.1, vscode-languageserver-types@^3.15.1: +vscode-languageserver-types@3.15.1, vscode-languageserver-types@^3.15.1, vscode-languageserver-types@~3.15.1: version "3.15.1" resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.15.1.tgz#17be71d78d2f6236d414f0001ce1ef4d23e6b6de" integrity sha512-+a9MPUQrNGRrGU630OGbYVQ+11iOIovjCkqxajPa9w57Sd5ruK8WQNsslzpa0x/QJqC8kRc2DUxWjIFwoNm4ZQ==