language-tools
language-tools copied to clipboard
"You might currently be viewing a Prisma 1 datamodel..." error appears too aggressively
Problem
Muscle memory from building Typescript types has me accidentally dropping colons everywhere. Every time I accidentally do that, an error pops up.

Suggested solution
- The error message should only pop up when initially opening files, not during edits
Alternatives
- Limit it to only opening once per session / file
- Add configuration to permanently suppress popup that I can drop into my
.code-workspacefile
Additional context
There are already red squiggles in my editor telling me I did it wrong. A pop up error for a small linting issue is a bit overkill
Is there a preferred solution to this? I might be able to throw together a PR if it's something straightforward
https://github.com/prisma/language-tools/blob/main/packages/language-server/src/MessageHandler.ts#L92
I'd happily delete it, but I'm a bit biased right now. The block seems to be nicely contained, and easy to do whatever with