language-tools
language-tools copied to clipboard
Show red squiggly lines when using multiple queries with raw methods from Prisma client
Currently, there is a limitation in Prisma client *raw functions that they can only run one query at a time https://github.com/prisma/prisma/issues/2868. Currently, this fails at runtime.
Prisma VSCode extension can potentially detect that and mark the raw SQL with red squiggly lines and an appropriate error message to make it clear that it is not supported yet.
This can be done by writing a TS LSP plugin: https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
Related:
- https://github.com/prisma/vscode/issues/293
- https://github.com/prisma/vscode/issues/74