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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vscode-graphql-syntax] GraphQL: Syntax - highlight error #2984

Closed
1 task done
matus-sabo opened this issue Dec 27, 2022 · 2 comments
Closed
1 task done

[vscode-graphql-syntax] GraphQL: Syntax - highlight error #2984

matus-sabo opened this issue Dec 27, 2022 · 2 comments
Labels
bug lsp-server graphql-language-service-server

Comments

@matus-sabo
Copy link

matus-sabo commented Dec 27, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have .cts file in vscode with content

const a = 47

const is being highlighted with message: Syntax Error: Unexpected Name "const".GraphQL: Syntax

When i disable vscode extension GraphQL: Language Feature Support - highlight error does not shows up

Screenshot from 2022-12-27 15-00-17

Expected Behavior

In .cts files should not display errors from GraphQL: Syntax when no GQL syntax is being used

Steps To Reproduce

Install vscode plugins:
- GraphQL: Language Feature Support  v0.8.4
- GraphQL: Syntax Highlighting  v1.0.5

create any .cts file
and write valid typescript ex.

const a = 47

vscode will highlight const with error: Syntax Error: Unexpected Name "const".GraphQL: Syntax

Environment

- VSCode plugins:
  - GraphQL: Language Feature Support  v0.8.4
  - GraphQL: Syntax Highlighting  v1.0.5
- OS: Fedora 36

Anything else?

No response

@matus-sabo matus-sabo added bug lsp-server graphql-language-service-server labels Dec 27, 2022
@matus-sabo matus-sabo changed the title [lsp-server] 🐞 <title> GraphQL: Syntax - highlight error Dec 27, 2022
@matus-sabo matus-sabo changed the title GraphQL: Syntax - highlight error [vscode-graphql-syntax] - GraphQL: Syntax - highlight error Dec 27, 2022
@matus-sabo matus-sabo changed the title [vscode-graphql-syntax] - GraphQL: Syntax - highlight error [vscode-graphql-syntax] GraphQL: Syntax - highlight error Dec 27, 2022
@acao
Copy link
Member

acao commented Feb 19, 2023

This should be resolved by #2926, is it still an issue? if not, it may be because we haven't been able to make a release yet. sorry we didn't tag all the related bugs in the PR

@aaronadamsCA
Copy link

aaronadamsCA commented Jun 8, 2023

Note that I'm seeing the same problem in MDX files. It seems the extension is trying to parse file types it doesn't understand.

image

Edit: The problem seems to have gone away after multiple window reloads. Hopefully it won't come back!

@acao acao closed this as completed 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

3 participants