New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete does not work for arguments after the first one in @relation()
#814
Comments
It's not directly related to referential actions. Even with the previous version, if you had |
This test probably needs to be expanded/duplicated to also test when there are already one or some properties in language-tools/packages/language-server/src/test/completion.test.ts Lines 651 to 703 in 659b89d
This might also affect other auto completions than @relation , if they have multiple possible attributes (not sure if we have any).
|
|
I created a PR that adds some tests, that I think would test for what you can see above in the screenshot: #820 |
Also related to #818 |
Fixed in latest insider version |
Bug description
When authoring a schema in VSCode with the extension, if
onDelete
oronUpdate
is the first argument in an@relation
, autocomplete for referential actions works, but when it comes after another argument, it doesn't and reverts to the buffer word completion.How to reproduce
Expected behavior
Autocomplete works in that position.
Prisma information
Using a recent version of prisma-fmt (e6bd3dc12d849124a04c3a8e6bd9c194381afda3)
Environment & setup
The text was updated successfully, but these errors were encountered: