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

Valid pipe operator flagged as illegal in VSCode syntax highlighting #23

Open
matt-koevort opened this issue Jul 17, 2024 · 1 comment

Comments

@matt-koevort
Copy link

matt-koevort commented Jul 17, 2024

Describe the bug

When piping an array in a projection to the order function, syntax highlighting suggests there is an error. On inspecting that error, it seems as if the pipe is not expected.

To Reproduce

Pipe an array in a projection to the order function, e.g. as seen below

*[] {
  "key1": {
    "key2": arr[] | order(type)
  }
}

Expected behavior

There should be no error

Screenshots

image

Which versions of Sanity are you using?

N/A

What operating system are you using?

macOS Sonoma 14.4.1

Additional context

N/A

Security issue?

N/A

@runeb
Copy link
Member

runeb commented Aug 7, 2024

We recently upgraded this plugin with a newer version of groq parsing. Could you verify if this fixed your issue @matt-koevort ?

#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants