You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior
A clear and concise description of what the bug is and what's the expected behavior.
In a prisma schema if you use previewFeaturesmultiSchema if you do not use @@schema on a model you will get a linter warning. If you are using multiSchema then every model / enum needs to specify which schema it belongs too. For those not similar with multi schema.
In the *.zmodel file if you use the multiSchema preview feature and do not include @@schema the VSCode plugin does not warn you.
YOU DO get a warning still when you try to generate the schema so it's not the end of the world.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
ZenStack version: 2.0.0-beta.8
Prisma version: 5.2.0
Database type: Postgresql
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
gruckion
changed the title
Linter doesn't complain when using previewFeatures = ["multiSchema"] but not including `@@schema@ on models / enums (LSP VSCode)
Linter doesn't complain when using previewFeatures = ["multiSchema"] but not including @@schema on models / enums (LSP VSCode)
Apr 11, 2024
gruckion
changed the title
Linter doesn't complain when using previewFeatures = ["multiSchema"] but not including @@schema on models / enums (LSP VSCode)
LSP VSCode: Linter doesn't complain when using previewFeatures = ["multiSchema"] but not including @@schema on models / enums
Apr 11, 2024
TODO
Description and expected behavior
A clear and concise description of what the bug is and what's the expected behavior.
In a prisma schema if you use
previewFeatures
multiSchema
if you do not use@@schema
on a model you will get a linter warning. If you are usingmultiSchema
then every model / enum needs to specify which schema it belongs too. For those not similar with multi schema.In the
*.zmodel
file if you use the multiSchema preview feature and do not include@@schema
the VSCode plugin does not warn you.YOU DO get a warning still when you try to generate the schema so it's not the end of the world.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: