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
255 stars 36 forks source link

Quick-fixes for Prisma Client API raw functions #293

Open carmenberndt opened 4 years ago

carmenberndt commented 4 years ago

We should have quick fixes for

This is only possible if the extension is activated not only for .prisma files.

janpio commented 2 years ago

What exactly should the quick fix do here @carmenberndt, do you remember maybe? Replacing ( with backticks and such?

carmenberndt commented 2 years ago

@janpio Not quite, here's the link to the internal discussion: https://prisma-company.slack.com/archives/C5Z9TH6N9/p1593174137040600?thread_ts=1593166055.039500&channel=C5Z9TH6N9&message_ts=1593174137.040600

janpio commented 2 years ago

Thanks for that link.

I guess we need to update that now somehow that we split the safe and unsafe functions into separate functions - see https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access. Not sure how that would affect any Quick Fixes or what those would look like based on this.