Support for VSCode Region Marker Folding #1382
Labels
kind/feature
A request for a new feature.
team/schema
Issue for team Schema.
tech/typescript
Issue for tech TypeScript.
topic: visualisation
Milestone
Problem
While modeling lots of data, it's easy for the
schema.prisma
file to get out of hand. A super handy feature that VSCode supports is region marker folding, which allows users to define certain regions that can be folded.Suggested solution
The Prisma extension for VSCode should introduce functionality allowing for VSCode to fold marked regions inside a Prisma schema. It's possible that much of the code for this feature could be edited from the #region folding for VS Code (GitHub) repository.
Alternatives
Customizable Extensions (like #region folding for VS Code)
This functionality can be achieved using the aforementioned #region folding for VS Code (VSCode Marketplace) extension, which allows users to specify how region folding should work in separate file extensions. Regardless, it would improve developer experience to automatically have this functionality built into the Prisma extension.
#region folding in VS Code
Extension Settings for PrismaSchema File Splitting
Users working in larger applications may benefit from migrating towards something like Schemix, which allows for splitting of Prisma schema files are they are generated from TypeScript. However, for small or medium sized schema, migrating to Schemix introduces new tools developers have to learn and might be time consuming.
Additional context
None
The text was updated successfully, but these errors were encountered: