Open runeb opened 3 months ago
Feature requested in #8
New dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
npm/@groqfmt/wasm@1.2.2 | None | 0 |
3.8 MB | ash |
Ideally we move the new dependency into the org before publishing this and not rely on @groqfmt/wasm
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.