Skip to content

Commit f5c99af

Browse files
committed
fix: refactor for graphql-tools
1 parent 479203c commit f5c99af

File tree

12 files changed

+974
-595
lines changed

12 files changed

+974
-595
lines changed

packages/graphql-language-service-server/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = {
157157
// note that this file will be loaded by the vscode runtime, so the node version and other factors will come into play
158158
customValidationRules: require('./config/customValidationRules'),
159159
languageService: {
160-
// should the language service read schema for definition lookups from a cached file based on graphql config output?
160+
// this is enabled by default if non-local files are specified in the project `schema`
161161
// NOTE: this will disable all definition lookup for local SDL files
162162
cacheSchemaFileForLookup: true,
163163
// undefined by default which has the same effect as `true`, set to `false` if you are already using // `graphql-eslint` or some other tool for validating graphql in your IDE. Must be explicitly `false` to disable this feature, not just "falsy"
@@ -237,14 +237,14 @@ via `initializationOptions` in nvim.coc. The options are mostly designed to
237237
configure graphql-config's load parameters, the only thing we can't configure
238238
with graphql config. The final option can be set in `graphql-config` as well
239239

240-
| Parameter | Default | Description |
241-
| ----------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
242-
| `graphql-config.load.baseDir` | workspace root or process.cwd() | the path where graphql config looks for config files |
243-
| `graphql-config.load.filePath` | `null` | exact filepath of the config file. |
244-
| `graphql-config.load.configName` | `graphql` | config name prefix instead of `graphql` |
245-
| `graphql-config.load.legacy` | `true` | backwards compatibility with `graphql-config@2` |
246-
| `graphql-config.dotEnvPath` | `null` | backwards compatibility with `graphql-config@2` |
247-
| `vscode-graphql.cacheSchemaFileForLookup` | `false` | generate an SDL file based on your graphql-config schema configuration for schema definition lookup and other features. useful when your `schema` config are urls |
240+
| Parameter | Default | Description |
241+
| ----------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
242+
| `graphql-config.load.baseDir` | workspace root or process.cwd() | the path where graphql config looks for config files |
243+
| `graphql-config.load.filePath` | `null` | exact filepath of the config file. |
244+
| `graphql-config.load.configName` | `graphql` | config name prefix instead of `graphql` |
245+
| `graphql-config.load.legacy` | `true` | backwards compatibility with `graphql-config@2` |
246+
| `graphql-config.dotEnvPath` | `null` | backwards compatibility with `graphql-config@2` |
247+
| `vscode-graphql.cacheSchemaFileForLookup` | `true` if `schema` contains non-sdl files or urls | generate an SDL file based on your graphql-config schema configuration for schema definition lookup and other features. enabled by default when your `schema` config are urls or introspection json, or if you have any non-local SDL files in `schema` |
248248

249249
all the `graphql-config.load.*` configuration values come from static
250250
`loadConfig()` options in graphql config.

0 commit comments

Comments
 (0)