bug: vscode extension does not show a warning about manually adding an index when using relationMode = "prisma" #1400
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
tech/engines/formatter engine
Issue in the Formatter Engine
topic: diagnostics
topic: referentialIntegrity/relationMode
Bug description
Hello everyone! I'm using
relationMode = "prisma"
and one of the models has two relations to the same model, but for some reason vscode doesn't show a warning for one of those relationships. This issue comes from the following discussion: prisma/prisma#18687If both of these relations have no index, there is only one warning:
If I fix the only warning that exists, the second warning still doesn't appear:
How to reproduce
Copy the prisma schema below to vscode.
Expected behavior
Both relations have warnings.
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: