Function prisma_fmt::format
source · pub fn format(schema: &str, params: &str) -> String
Expand description
The two parameters are:
- The Prisma schema to reformat, as a string.
- An LSP DocumentFormattingParams object, as JSON.
The function returns the formatted schema, as a string.
Of the DocumentFormattingParams, we only take into account tabSize, at the moment.