Skip to content

Commit

Permalink
fix cache & validation
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jun 11, 2023
1 parent 28b1b5a commit 891d683
Show file tree
Hide file tree
Showing 8 changed files with 361 additions and 153 deletions.
12 changes: 12 additions & 0 deletions .changeset/rotten-buckets-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'graphql-language-service-server': minor
'graphql-language-service-cli': patch
'vscode-graphql': patch
---

**Fix:** Disable `getSchema()` results cacheing in the LSP server for now. Schema changes from file and/or network schema should be reflected in other files after they are saved or edit.

If this leads to excessive introspection schema fetching for URL `schema` configs, we will add an lru schema cache with configurable invalidation timeout. Hopefully `cache-control` headers take care of this problem transparently.



3 changes: 2 additions & 1 deletion packages/graphql-language-service-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@
"@vue/compiler-sfc": "^3.2.41",
"dotenv": "8.2.0",
"fast-glob": "^3.2.7",
"glob": "^7.2.0",
"glob": "^10.2.3",
"graphql-config": "4.3.0",
"graphql-language-service": "^5.1.5",
"mkdirp": "^1.0.4",
"node-abort-controller": "^3.0.1",
"nullthrows": "^1.0.0",
"vscode-jsonrpc": "^8.0.1",
"vscode-languageserver": "^8.0.1",
"vscode-languageserver-textdocument": "1.0.8",
"vscode-languageserver-types": "^3.17.2",
"vscode-uri": "^3.0.2"
},
Expand Down
Loading

0 comments on commit 891d683

Please sign in to comment.