zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

LSP VSCode: Linter doesn't complain when using `previewFeatures = ["multiSchema"]` but not including `@@schema` on models / enums

Open gruckion opened this issue 1 year ago • 0 comments

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 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.

gruckion avatar Apr 10 '24 09:04 gruckion