bug(fmt): quick-fixes break with no newline after model in schema #3444
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: quick-fix
Milestone
Bug description
When a schema-file has no newline after the last model,
lib::offset_to_position()
panics. This also then results in no quick-fixes (populated from engines) being available as they all rely on this function.Screen.Recording.2022-11-25.at.12.56.02.mov
Expected behavior
This should still just work
Prisma information
The text was updated successfully, but these errors were encountered: