Syntax highlighting for the GROQ query language is available in the following situations:
Files with the .groq extension
Fenced code blocks in Markdown with the groq tag
Tagged template literals with the groq tag
Template literals prefixed with the /* groq */ comment
Template literals starting with a // groq comment
When GROQ-queries are detected, the extension will allow you to run the query and displays the result as JSON in a separate tab.
The project ID and dataset used is determined by finding the nearest sanity.json.
If the GROQ file/query has any variables, then extension asks for a relative filename of a JSON-file containing an object of key-value mappings. It autofills the param filename based on the current file with a .json extension, if it exists.