Skip to content

Commit

Permalink
reload on legacy config file
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Nov 12, 2022
1 parent a11f090 commit 329f303
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/silver-planets-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'graphql-language-service-server': patch
'graphql-language-service-cli': patch
'vscode-graphql': patch
---

Reload the language service when a legacy format .graphqlconfig file has changed
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ export class MessageProcessor {

await this._invalidateCache(textDocument, uri, contents);
} else {
const configMatchers = ['graphql.config', 'graphqlrc'].filter(Boolean);
const configMatchers = [
'graphql.config',
'graphqlrc',
'graphqlconfig',
].filter(Boolean);
if (this._settings?.load?.fileName) {
configMatchers.push(this._settings.load.fileName);
}
Expand Down

0 comments on commit 329f303

Please sign in to comment.