Skip to content
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

Syntax highlighting support for Prisma.sql in prisma vscode extension #1533

Open
andreasvh-conceto opened this issue Sep 9, 2023 · 0 comments
Labels
kind/feature A request for a new feature. topic: syntax highlighting

Comments

@andreasvh-conceto
Copy link

Problem

With the prisma vs code plugin syntax highlighting is working for queryRaw queries.

await this.prisma.$queryRaw`SELECT id,name FROM person WHERE name='john'`;

In my last couple of projects i also had to construct more complex queries with Prisma.sql. Currently there is no syntax hightlighting available.

const query: Prisma.Sql = Prisma.sql`SELECT id,name FROM person WHERE name='john'`;
//... do some other complex stuff i.e. appending additional where conditions
 
await prisma.$queryRaw(query);

Suggested solution

Syntax highlighting should happen also for Prisma.sql method, not only for $queryRaw.

Alternatives

No alternative available. I have to focus myself everytime without syntax hightlighting. See my screenshots

Additional context

How it is currently with Prisma.sql:
prisma_sql_without_highlighting

How it is working with $queryRaw, but NOT with Prisma.sql. For Prisma.sql i expect the same
prisma_query_raw_highlighting

@janpio janpio changed the title Syntax highlighting support for Prisma.sql in prisma vscode extension Syntax highlighting support for Prisma.sql in prisma vscode extension Sep 18, 2023
@janpio janpio transferred this issue from prisma/prisma Sep 18, 2023
@janpio janpio added kind/feature A request for a new feature. topic: syntax highlighting labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. topic: syntax highlighting
Projects
None yet
Development

No branches or pull requests

2 participants