Skip to content

Conversation

torjusb
Copy link

@torjusb torjusb commented Sep 9, 2025

Description

This adds a new 'Copy Query' command next to the 'Execute Query'. I often found my self simply wanting to copy the query instead of executing it.

What to review

Most of the logic is in extension.ts which adds the sanity.copyGroq command. After a successful copy, a status bar message is shown. I figured a status bar message is better than full notification message in this scenario.

Looks like some of the files weren't fully formatted according to the Prettier rules, so a few extra formatting changes got included.

Small QOL improvement which adds a 'Copy Query' command along side
'Execute Query'. Makes it easy to copy the query if you want to execute
it in Vision or send it to someone.

Looks like a few of the files were not formatted according to the
Prettier rules, which caused a slightly larger change set than desired.
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

Successfully merging this pull request may close these issues.

1 participant