Skip to content

Commit

Permalink
Update to 5.13 uninteded changes
Browse files Browse the repository at this point in the history
In 5.13, unintentionaly, we started treating lint input as JSON. To
avoid patch engine release, we are just adapting language-tools instead
of undoing the breaking change.
  • Loading branch information
SevInf committed Apr 23, 2024
1 parent adf4606 commit 19df1d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function lint(text: string, onError?: (errorMessage: string) => v
})
}

const result = prismaSchemaWasm.lint(text)
const result = prismaSchemaWasm.lint(JSON.stringify(text))

return JSON.parse(result) as LinterError[]
} catch (e) {
Expand Down

0 comments on commit 19df1d2

Please sign in to comment.