victorhqc / language-prisma

Atom Prisma Language
7 stars 0 forks source link

Add support for formatting #1

Open chrisdrackett opened 4 years ago

chrisdrackett commented 4 years ago

https://github.com/prisma/prisma2/blob/master/docs/prisma-schema-file.md#formatting-rules

victorhqc commented 4 years ago

Hello @chrisdrackett!

I'm not sure if formatting should be done by the language highlighter package 🤔 Maybe I'm wrong, but JS for example, has some other packages to handle styling. I'll check how formatting is handled in VSCode if it exists.

chrisdrackett commented 4 years ago

I'm pretty sure it is handled by the Prisma package: https://marketplace.visualstudio.com/items?itemName=Prisma.prisma

more info: https://github.com/prisma/prisma2/blob/master/docs/prisma-schema-file.md#auto-formatting

victorhqc commented 4 years ago

Interesting! I'll have to look into that. To be honest I didn't know it existed 😄 but looks like something the package should have 😄