We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there, thanks for this lib!
I have added support for formatting, lmk if you'd like a PR
it's pretty simple, something like this:
import { languages } from 'monaco-editor/esm/vs/editor/editor.api'; import { format } from 'sql-formatter'; languages.registerDocumentFormattingEditProvider('sql', { provideDocumentFormattingEdits(model, options) { const formatted = format(model.getValue(), { indentStyle: 'standard', }); return [ { range: model.getFullModelRange(), text: formatted, }, ]; }, }); languages.registerDocumentRangeFormattingEditProvider('sql', { provideDocumentRangeFormattingEdits(model, range, options) { const formatted = format(model.getValueInRange(range), { indentStyle: 'standard', }); return [ { range: range, text: formatted, }, ]; }, });
The text was updated successfully, but these errors were encountered:
Hi, @salvoravida, we are very welcome your contribution. But there needs to integrate of many kinds of SQL.
Sorry, something went wrong.
No branches or pull requests
Hi there, thanks for this lib!
I have added support for formatting, lmk if you'd like a PR
it's pretty simple, something like this:
The text was updated successfully, but these errors were encountered: