-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
SQL syntax highlighting inside sqlx macros #10448
Comments
How do you see that working? |
There is autocomplete for SQL files, and countless extensions to do that if not provided on install of VSCode; literally that, but inside the SQLx query macro. And for the autocomplete, SQLx actually provides this. The offline feature can do this, but, if it needs to be on the fly a modification would be made to SQLx, or we write something that fetches the data in RA |
Unfortunately, we can't do that, for various technical reasons. And I don't think we should special-case |
Ah, I've done this wrong. I meant overall SQL syntax highlighting, but they look good. |
So since we're not going to provide any specific SQL support, let's close this in favor of those issues. |
@Milo123459 it's a duplicate of #10281, filed also by you. |
I am aware. I wanted this one to be more specific |
If you ran into this and use NeoVim. You can use Treesitter to highlight the SQL inside string literals by putting
into |
Is there an equivalent for vscode? |
I am not a VS Code expert but I don't believe there is. Treesitter support is an open issue: microsoft/vscode#50140 |
You can use https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax |
Something like SQL syntax-highlighting inside usage of SQLx macros. This could also provide autocomplete for columns in tables, along with SQL keywords like UPDATE, INSERT, etc.
The text was updated successfully, but these errors were encountered: