language-tools
language-tools copied to clipboard
VSCode extension confusingly "supports" string interpolation
Previously mentioned in an issue the prisma repo
Bug description
The VSCode Prisma extension "correctly" highlights string interpolation and sees it as correct even though PSL currently does not support this feature.

How to reproduce
- Create a
schema.prismafile - Insert the following code:
datasource db { provider = "postgresql" url = "prefix${env("DATABASE_URL")}postfix" }
Expected behavior
It should interpret it as a normal part of the string and throw an error because of the unescaped ".
Prisma information
Prisma version: 2.20.1
Environment & setup
- OS: Windows
- Editor: VSCode
- Editor version: 1.55.1
- Extension version: v2.20.1
Can confirm, something to do about this syntax probably https://github.com/prisma/language-tools/blob/214040dd8b7f6cdf47204717d61622330c05d0f7/packages/vscode/syntaxes/prisma.tmLanguage.json#L414:L437
Reproducing this on VSCode 1.72 & Prisma v4.4.0 led to the following:
