graphql / graphql/graphiql

[lsp-server] [vscode-graphql] The language server should go into no-op mode when `package.json` is detected but doesn't contain graphql config

Open
#2,820 0 comments 0 reactions 0 assignees View on GitHub
enhancement lsp-server
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.