prisma-import icon indicating copy to clipboard operation
prisma-import copied to clipboard

Exclude output schema by default

Open ajmnz opened this issue 2 years ago • 3 comments
trafficstars

ajmnz avatar Apr 23 '23 16:04 ajmnz

Future reader: to solve the issue of the VS Code extension complaining about duplicate datasource blocks, add the following to .vscode/settings.json

{
    "prisma.import.exclude": [
        "**/schema.prisma"
    ]
}

mordechaim avatar Mar 27 '24 18:03 mordechaim

Future reader: to solve the issue of the VS Code extension complaining about duplicate datasource blocks, add the following to .vscode/settings.json

{
    "prisma.import.exclude": [
        "**/schema.prisma"
    ]
}

I tried adding this to both my user settings and the workspace settings, it's still showing the VSCode error 😕 I tried killing and reopening vscode, thinking the features just needed to reload, no joy. Are there any other workarounds to help get VScode to play nice with my modules? (for context, i'm putting the datasource block into prisma/modules/Base.prisma, and it's outputting to prisma/schema.prisma)

therebelrobot avatar Apr 01 '24 15:04 therebelrobot

You need to uninstall the official vs code extension and use only the Prisma Import extension

mordechaim avatar Apr 01 '24 15:04 mordechaim