You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have an easy way for people to automatically format their SQL blocks.
Ideally the formatter should appear on the right-hand side of the SQL block when the code part is not collapsed.
Clicking the formatter button should format the query.
I'm not too worried about which formatter to use, as long as it's a popular one and not a niche one whose standards nobody agrees with.
When it comes to formatting, all you need to do is get the content of the block (get the source attribute), pass it through the formatter, set the result as the new source of the block (remember to use the right Yjs type - I think we already do this elsewhere when accepting AI suggestions for example, so have a look there)
The text was updated successfully, but these errors were encountered:
We should have an easy way for people to automatically format their SQL blocks.
Ideally the formatter should appear on the right-hand side of the SQL block when the code part is not collapsed.
Clicking the formatter button should format the query.
I'm not too worried about which formatter to use, as long as it's a popular one and not a niche one whose standards nobody agrees with.
When it comes to formatting, all you need to do is get the content of the block (get the source attribute), pass it through the formatter, set the result as the new source of the block (remember to use the right Yjs type - I think we already do this elsewhere when accepting AI suggestions for example, so have a look there)
The text was updated successfully, but these errors were encountered: