[lsp-server] [vscode-graphql] The language server should go into no-op mode when `package.json` is detected but doesn't contain graphql config
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
## Current Behavior (if applicable)
Currently, if `package.json` is present but no graphql config is present, the server will keep attempting to load the config on every change, and throwing a warning.
We want `vscode-graphql` to only load when graphql config is present, but `package.json` `graphql` config option as of 2.x or 3.x makes that difficult.
## Desired Behavior
The LSP server should learn that `graphql-config` is not present for `package.json` and not try to load the config on every file change, and enter the no config present state where the server ignores events.
Perhaps we can even exit 0, so that the LSP server quits without the 5x attempted reloads, until an activation event triggers it again.
Contributor guide
Assessment
This issue has not been assessed yet.