Skip to content

Commit

Permalink
fix: casing of filePath for graphql-config (#3703)
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Aug 9, 2024
1 parent 8411e6c commit 590a987
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/wise-spies-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'vscode-graphql': patch
'graphql-language-service-server': 'patch'
---

use `filepath` instead of `filePath` for `graphql-config`
2 changes: 1 addition & 1 deletion packages/graphql-language-service-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ with graphql config. The final option can be set in `graphql-config` as well
| Parameter | Default | Description |
| ----------------------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `graphql-config.load.baseDir` | workspace root or process.cwd() | the path where graphql config looks for config files |
| `graphql-config.load.filePath` | `null` | exact filepath of the config file. |
| `graphql-config.load.filepath` | `null` | exact filepath of the config file. |
| `graphql-config.load.configName` | `graphql` | config name prefix instead of `graphql` |
| `graphql-config.load.legacy` | `true` | backwards compatibility with `graphql-config@2` |
| `graphql-config.dotEnvPath` | `null` | backwards compatibility with `graphql-config@2` |
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You can search a folder for any of the matching config file names listed above:
Or a specific filepath:

```json
"graphql-config.load.filePath": "./config/my-graphql-config.js"
"graphql-config.load.filepath": "./config/my-graphql-config.js"
```

Or a different `configName` that allows different formats:
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
],
"description": "Base dir for graphql config loadConfig(), to look for config files or package.json"
},
"graphql-config.load.filePath": {
"graphql-config.load.filepath": {
"type": [
"string"
],
Expand Down

0 comments on commit 590a987

Please sign in to comment.