prisma-import
prisma-import copied to clipboard
Exclude output schema by default
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"
]
}
Future reader: to solve the issue of the VS Code extension complaining about duplicate
datasourceblocks, 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)
You need to uninstall the official vs code extension and use only the Prisma Import extension