-
Notifications
You must be signed in to change notification settings - Fork 40
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
Missing code autocomplete for referential actions with mongodb #1676
Closed
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: autocompletion
LSP text document completion
topic: mongodb
Milestone
Comments
Just a note, i am using the schema from referential actions docs with provider set to MongoDB to reproduce the issue. |
Druue
added
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
topic: autocompletion
LSP text document completion
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
labels
Apr 16, 2024
Druue
added
bug/2-confirmed
Bug has been reproduced and confirmed.
and removed
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
labels
Apr 29, 2024
Hey @milindgoel15, I can confirm what you're seeing as a bug, this is due to an issue in engines where we were using the incorrect set of referential actions specifically for completions offered by the extension. There's a fix in review :) |
This was referenced Jun 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: autocompletion
LSP text document completion
topic: mongodb
Bug description
Not sure if this is a bug or a missing feature, but when adding any referential actions (onDelete or onUpdate), it does not give any auto-suggestion in vscode even while using the Prisma extension.
Normally it gives fields, names, references when creating any type of relation between models but it does not give for onDelete or onUpdate. Also all the support actions with it (Cascade, SetNull, etc).
How to reproduce
Expected behavior
the actions gets auto-suggested as to what type of relation you want to set.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: