Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gruckion opened this issue Apr 10, 2024 · 0 comments

Comments

@gruckion
Copy link

gruckion commented Apr 10, 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 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 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant