Skip to content

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

@aniyazngn

Description

@aniyazngn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions