Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lsp-server] 馃悶 vscode code completion does not work #3538

Open
1 task done
abaldawa opened this issue Feb 22, 2024 · 1 comment
Open
1 task done

[lsp-server] 馃悶 vscode code completion does not work #3538

abaldawa opened this issue Feb 22, 2024 · 1 comment
Labels
bug lsp-server graphql-language-service-server

Comments

@abaldawa
Copy link

Is there an existing issue for this?

  • 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 and here 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

@abaldawa abaldawa added bug lsp-server graphql-language-service-server labels Feb 22, 2024
@acao
Copy link
Member

acao commented Mar 4, 2024

I have a fix for this I am just about to release in #3521! there is a pre-release in a zip file if you want to give it a try!

@acao acao changed the title [lsp-server] 馃悶 vscode syntax highlighting does not work [lsp-server] 馃悶 vscode code completion does not work Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug lsp-server graphql-language-service-server
Projects
None yet
Development

No branches or pull requests

2 participants