language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

After the latest Prisma VS Code update, we can no longer use multiple schema.prisma files in the same workspace

Open aniyazngn opened this issue 6 months ago • 0 comments

Bug description

I have two schemas that i generate and use mysql.prisma and default schema.prisma , now the plugin treat both as single file and keeping throwing errors . "The generator "client" cannot be defined because a generator with that name already exists.Prisma" which was never the case before, it never treat both schema files as one!

How to reproduce

create two schema.prisma files with different name and have same table name in both

Expected behavior

The extension will throw errors all over the schema!

Prisma information

Environment & setup

Mac , node v20.11.1, VS code , npm 10.2.4, framework fastify

  • OS: macOS
  • Editor:VS Code
  • Editor version: Version: 1.98.1 (Universal)
  • Extension version: Prisma

aniyazngn avatar Jun 03 '25 06:06 aniyazngn