Skip to content

Conversation

runeb
Copy link
Member

@runeb runeb commented Aug 7, 2024

Uses wasm for groq formatting, inspired by groq.app by @juice49 . Currently only works for inlined queries, not standalone files.

Modified lens provider to calculate a range for the query instead of just a start position, so that replacement is easier.
There is currently a bug where the range is not recalculated after edits are made or formatter has replaced the query. Most easily reproduced by replacing a query multiple times.

@runeb
Copy link
Member Author

runeb commented Aug 7, 2024

Feature requested in #8

Copy link

socket-security bot commented Aug 7, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@groqfmt/[email protected] None 0 3.8 MB ash

View full report↗︎

@runeb
Copy link
Member Author

runeb commented Aug 7, 2024

Ideally we move the new dependency into the org before publishing this and not rely on @groqfmt/wasm

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