prisma / language-tools

🌐 Prisma Language Tools = Language Server and Prisma's VS Code extension.
https://marketplace.visualstudio.com/items?itemName=Prisma.prisma
Apache License 2.0
257 stars 40 forks source link

feat(vscode): Add syntax highlighting to `Prisma.sql` #1794

Open ajmnz opened 4 months ago

ajmnz commented 4 months ago

Fixes #1533, adds syntax highlighting to the Prisma.sql helper.

As I understand, only $queryRaw and $executeRaw have syntax highlighting because they are considered "safe". Docs do not make references to Prisma.sql being unsafe.

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

andreasvh-conceto commented 2 months ago

Hi, this is such a useful feature. In our projects we use queryRaw, but would prefer to create an Prisma.sql , to pass this query object around. But without highlighting this is just meh....

@ajmnz @janpio any idea or possibility, to merge this? :)

andreasvh-conceto commented 2 months ago

This will fix https://github.com/prisma/language-tools/issues/1533