Beforehand:
- disable prisma vscode plugin
- install
prisma-ls-0.0.31.vsix
Syntax highlighting
- open
testDb.prisma
from thesrc/__test__
folder - all fields should now be syntax-highlighted
- remove
datasource
- first block should not be syntax-highlighted anymore
Linting
- open
testDb.prisma
from thesrc/__test__
folder - remove
provider
from datasourcedb
db
should now have red squiggles- a warning should be shown that argument
provider
is missing - replace
author User?
withauthor Use
or any other word containing a spelling error - red squiggles should underline the error and also a quick error description should be shown
- remove
?
fromauthorId Int?
- line
author
should be marked red, as at least one field ofauthor
andauthorId
is required
Auto-formatting
- open
testDb.prisma
from thesrc/__test__
folder - add whitespaces between any two words or before any word
- press shift + alt + f
- whitespaces should be undone
Beforehand:
- disable prisma vscode plugin
- install
prisma-ls-jump-to-def-0.0.31.vsix
Jump-to-definition
- open
testDb.prisma
from thesrc/__test__
folder - click on relation
User
in modelPost
- focus should now move to the term
User
in modelUser