Syntax error shifting due to Cyrillic characters encoding issue #1726
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
topic: validation
The issue with Cyrillic characters is that when the VSCode extension takes the character value and counts by bytes, if there are Cyrillic characters, it will be 2 bytes, and each byte contains a position. This means that if I enter Cyrillic characters, the syntax error will shift by +1 character.
Sample cyrillic text:
The text was updated successfully, but these errors were encountered: