language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

"You might currently be viewing a Prisma 1 datamodel..." error appears too aggressively

Open zoe-codez opened this issue 3 years ago • 1 comments

Problem

Muscle memory from building Typescript types has me accidentally dropping colons everywhere. Every time I accidentally do that, an error pops up.

2022-11-21_12-05

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-workspace file

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

zoe-codez avatar Nov 21 '22 18:11 zoe-codez

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

zoe-codez avatar Apr 05 '23 02:04 zoe-codez