graphql / graphql/graphiql

CLI: stream server does not work

Open
#3,538 5 comments 2 reactions 0 assignees View on GitHub
bug lsp-server
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

No code completion in ".graphql" schema file inside vs code? Please see the video. I have installed both official extensions for vs code [here](https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql) and [here](https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql-syntax) but its still not giving any code completion.

Webstorm works fine without any settings but VS code does not show any autocomplete in ".graphql" file. Any help would be appreciated as after searching the web/this github repo, I still was not able to find the solution.

video https://github.com/graphql/graphiql/assets/5449692/c2dd72a8-70a2-411b-af52-7fcb8301b64e

### Expected Behavior

Syntax highlighting should work in `*.graphql` schema files

### Steps To Reproduce

1. For VS code install https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql and https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql-syntax
2. In a temp project create `.graphqlrc.yml` file
3. add `schema: 'schema.graphql'` section
4. create `schema.graphql` file
5. No type completion for any graphql data type

### Environment

* LSP Server Version: latest
* OS: Macos
* LSP Client: vscode

### Anything else?

_No response_

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.