barklan / inline_sql_syntax

Highlight and lint inline SQL strings.
https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax
MIT License
57 stars 24 forks source link

Feature request: Mark a SQL syntax with `/* sql */` and `sql` comment tag in JS #41

Closed sepsol closed 2 years ago

sepsol commented 2 years ago

So instead of:

const query = `--sql SELECT * FROM table`;

We can write this (to be more consistent with the rest of inline extensions):

const query = /* sql */`SELECT * FROM table`;
const html  = /* html */`<div id="root"></div>`;

or:

const query   = sql`SELECT * FROM table`;
const html    = html`<div id="root"></div>`
const graphql = gql`query { testConnection }`;
barklan commented 2 years ago

Added in 2.15