Skip to content

Commit 22c331b

Browse files
committed
perf(workspaces): only send workspace documents req to server
other changes - update gql-language-server
1 parent ad900cd commit 22c331b

File tree

3 files changed

+15
-44
lines changed

3 files changed

+15
-44
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
"vscode": "1.1.35"
243243
},
244244
"dependencies": {
245-
"@playlyfe/gql-language-server": "0.1.0",
245+
"@playlyfe/gql-language-server": "0.2.0",
246246
"vscode-languageclient": "5.2.1"
247247
},
248248
"galleryBanner": {

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ function createClientForWorkspace(folder: WorkspaceFolder): null | IClient {
130130
},
131131
outputChannel,
132132
workspaceFolder: folder,
133+
initializationOptions: {
134+
relativePattern: true,
135+
},
133136
};
134137

135138
// Create the language client and start the client.

yarn.lock

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@
257257
universal-user-agent "^2.0.0"
258258
url-template "^2.0.8"
259259

260-
"@playlyfe/gql-language-server@0.1.0":
261-
version "0.1.0"
262-
resolved "https://registry.yarnpkg.com/@playlyfe/gql-language-server/-/gql-language-server-0.1.0.tgz#b034127f01ea5ada24a526e002bb41c35d349e86"
263-
integrity sha512-2W4H3QJhFpPDHqBVWDvA/pPKf2NEOLO8E4fvwQErH4GivyF1whAEKbP2NjBSr8APvCy9G7D1F95kDqyhv0xnRA==
260+
"@playlyfe/gql-language-server@0.2.0":
261+
version "0.2.0"
262+
resolved "https://registry.yarnpkg.com/@playlyfe/gql-language-server/-/gql-language-server-0.2.0.tgz#27516cd253a66fa63ea0e0fe679efd5284a3ad34"
263+
integrity sha512-Jk2U2bVzVkdv7aOYUn++39LUw/cQRAJEUht4lQLAV3gwxuDb0nkllrxhbGXmLFeyz54v6GcLLIPZAk4AOymntw==
264264
dependencies:
265265
"@babel/polyfill" "7.4.4"
266266
"@babel/runtime" "7.4.5"
@@ -1443,7 +1443,7 @@ debug@^4.0.0, debug@^4.0.1:
14431443
dependencies:
14441444
ms "^2.1.1"
14451445

1446-
debuglog@*, debuglog@^1.0.1:
1446+
debuglog@^1.0.1:
14471447
version "1.0.1"
14481448
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
14491449
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -2552,7 +2552,7 @@ import-lazy@^2.1.0:
25522552
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
25532553
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=
25542554

2555-
imurmurhash@*, imurmurhash@^0.1.4:
2555+
imurmurhash@^0.1.4:
25562556
version "0.1.4"
25572557
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
25582558
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -3135,7 +3135,7 @@ libnpm@^2.0.1:
31353135
read-package-json "^2.0.13"
31363136
stringify-package "^1.0.0"
31373137

3138-
libnpmaccess@*, libnpmaccess@^3.0.1:
3138+
libnpmaccess@^3.0.1:
31393139
version "3.0.1"
31403140
resolved "https://registry.yarnpkg.com/libnpmaccess/-/libnpmaccess-3.0.1.tgz#5b3a9de621f293d425191aa2e779102f84167fa8"
31413141
integrity sha512-RlZ7PNarCBt+XbnP7R6PoVgOq9t+kou5rvhaInoNibhPO7eMlRfS0B8yjatgn2yaHIwWNyoJDolC/6Lc5L/IQA==
@@ -3164,7 +3164,7 @@ libnpmhook@^5.0.2:
31643164
get-stream "^4.0.0"
31653165
npm-registry-fetch "^3.8.0"
31663166

3167-
libnpmorg@*, libnpmorg@^1.0.0:
3167+
libnpmorg@^1.0.0:
31683168
version "1.0.0"
31693169
resolved "https://registry.yarnpkg.com/libnpmorg/-/libnpmorg-1.0.0.tgz#979b868c48ba28c5820e3bb9d9e73c883c16a232"
31703170
integrity sha512-o+4eVJBoDGMgRwh2lJY0a8pRV2c/tQM/SxlqXezjcAg26Qe9jigYVs+Xk0vvlYDWCDhP0g74J8UwWeAgsB7gGw==
@@ -3189,7 +3189,7 @@ libnpmpublish@^1.1.0:
31893189
semver "^5.5.1"
31903190
ssri "^6.0.1"
31913191

3192-
libnpmsearch@*, libnpmsearch@^2.0.0:
3192+
libnpmsearch@^2.0.0:
31933193
version "2.0.1"
31943194
resolved "https://registry.yarnpkg.com/libnpmsearch/-/libnpmsearch-2.0.1.tgz#eccc73a8fbf267d765d18082b85daa2512501f96"
31953195
integrity sha512-K0yXyut9MHHCAH+DOiglQCpmBKPZXSUu76+BE2maSEfQN15OwNaA/Aiioe9lRFlVFOr7WcuJCY+VSl+gLi9NTA==
@@ -3198,7 +3198,7 @@ libnpmsearch@*, libnpmsearch@^2.0.0:
31983198
get-stream "^4.0.0"
31993199
npm-registry-fetch "^3.8.0"
32003200

3201-
libnpmteam@*, libnpmteam@^1.0.1:
3201+
libnpmteam@^1.0.1:
32023202
version "1.0.1"
32033203
resolved "https://registry.yarnpkg.com/libnpmteam/-/libnpmteam-1.0.1.tgz#ff704b1b6c06ea674b3b1101ac3e305f5114f213"
32043204
integrity sha512-gDdrflKFCX7TNwOMX1snWojCoDE5LoRWcfOC0C/fqF7mBq8Uz9zWAX4B2RllYETNO7pBupBaSyBDkTAC15cAMg==
@@ -3357,11 +3357,6 @@ lockfile@^1.0.4:
33573357
dependencies:
33583358
signal-exit "^3.0.2"
33593359

3360-
lodash._baseindexof@*:
3361-
version "3.1.0"
3362-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
3363-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
3364-
33653360
lodash._baseuniq@~4.6.0:
33663361
version "4.6.0"
33673362
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -3370,33 +3365,11 @@ lodash._baseuniq@~4.6.0:
33703365
lodash._createset "~4.0.0"
33713366
lodash._root "~3.0.0"
33723367

3373-
lodash._bindcallback@*:
3374-
version "3.0.1"
3375-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
3376-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
3377-
3378-
lodash._cacheindexof@*:
3379-
version "3.0.2"
3380-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
3381-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
3382-
3383-
lodash._createcache@*:
3384-
version "3.1.2"
3385-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
3386-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
3387-
dependencies:
3388-
lodash._getnative "^3.0.0"
3389-
33903368
lodash._createset@~4.0.0:
33913369
version "4.0.3"
33923370
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
33933371
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
33943372

3395-
lodash._getnative@*, lodash._getnative@^3.0.0:
3396-
version "3.9.1"
3397-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
3398-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
3399-
34003373
lodash._reinterpolate@~3.0.0:
34013374
version "3.0.0"
34023375
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
@@ -3437,11 +3410,6 @@ lodash.isstring@^4.0.1:
34373410
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
34383411
integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
34393412

3440-
lodash.restparam@*:
3441-
version "3.6.1"
3442-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
3443-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
3444-
34453413
lodash.set@^4.3.2:
34463414
version "4.3.2"
34473415
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
@@ -4094,7 +4062,7 @@ npm-pick-manifest@^2.2.3:
40944062
npm-package-arg "^6.0.0"
40954063
semver "^5.4.1"
40964064

4097-
npm-profile@*, npm-profile@^4.0.1:
4065+
npm-profile@^4.0.1:
40984066
version "4.0.1"
40994067
resolved "https://registry.yarnpkg.com/npm-profile/-/npm-profile-4.0.1.tgz#d350f7a5e6b60691c7168fbb8392c3603583f5aa"
41004068
integrity sha512-NQ1I/1Q7YRtHZXkcuU1/IyHeLy6pd+ScKg4+DQHdfsm769TGq6HPrkbuNJVJS4zwE+0mvvmeULzQdWn2L2EsVA==

0 commit comments

Comments
 (0)