Formatter doesn't allow comments on consecutive indices #11455
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines
Issue for tech Engines.
topic: prisma format
CLI: prisma format
Milestone
Bug description
In a model with multiple indices declared with
@@index
, the Prisma formatter will move the indices to be on consecutive lines, even if there are comments between them.How to reproduce
Use this schema:
Run
prisma format
. The schema will be formatted as follows:Expected behavior
Comments in between consecutive
@@index
statements are not reordered.Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: