Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 0133113

Browse files
committed
upgrade lang server, more extensions
1 parent ceda033 commit 0133113

File tree

3 files changed

+69
-56
lines changed

3 files changed

+69
-56
lines changed

package-lock.json

Lines changed: 55 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"dotenv": "^10.0.0",
245245
"graphql": "^15",
246246
"graphql-config": "~4.1.0",
247-
"graphql-language-service-server": "^2.7.6",
247+
"graphql-language-service-server": "^2.7.7",
248248
"graphql-tag": "^2.12.6",
249249
"graphql-ws": "^5.5.5",
250250
"node-fetch": "^2.6.6",

src/extension.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,19 @@ export function activate(context: ExtensionContext) {
7272
{ scheme: "file", language: "typescriptreact" },
7373
],
7474
synchronize: {
75-
fileEvents: workspace.createFileSystemWatcher(
76-
"**/{*.graphql,*.graphqls,*.gql,*.js,*.jsx,*.ts,*.tsx,graphql.config.*,.graphqlrc,.graphqlrc.*,package.json}",
77-
),
75+
// TODO: should this focus on `graphql-config` documents, schema and/or includes?
76+
fileEvents: [
77+
workspace.createFileSystemWatcher(
78+
"/{graphql.config.*,.graphqlrc,.graphqlrc.*,package.json}",
79+
false,
80+
// ignore change events for graphql config, we only care about create, delete and save events
81+
true,
82+
),
83+
// these ignore node_modules and .git by default
84+
workspace.createFileSystemWatcher(
85+
"**/{*.graphql,*.graphqls,*.gql,*.js,*.mjs,*.cjs,*.esm,*.es,*.es6,*.jsx,*.ts,*.tsx}",
86+
),
87+
],
7888
},
7989
outputChannel: outputChannel,
8090
outputChannelName: "GraphQL Language Server",

0 commit comments

Comments
 (0)