Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support fetching references for a model #982

Closed
pimeys opened this issue Dec 1, 2021 · 2 comments · Fixed by prisma/prisma-engines#4934
Closed

Support fetching references for a model #982

pimeys opened this issue Dec 1, 2021 · 2 comments · Fixed by prisma/prisma-engines#4934
Assignees
Labels
domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/feature A request for a new feature. topic: language server topic: references LSP References
Milestone

Comments

@pimeys
Copy link
Contributor

pimeys commented Dec 1, 2021

We can jump to definition already, but we should also be able to list all lines where a model is referenced. This is in the protocol with the command textDocument/references and you can go on top of a model, list all references and see where the model is used in the data model.

@pimeys pimeys added kind/feature A request for a new feature. topic: language server domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. labels Dec 1, 2021
@janpio
Copy link
Contributor

janpio commented Dec 2, 2021

Do you have a screenshot or gif of how this looks in other extensions?

@Druue
Copy link
Contributor

Druue commented Jul 18, 2024

This has been completed as part of prisma/prisma-engines#4934

@Druue Druue closed this as completed Jul 18, 2024
@Druue Druue linked a pull request Jul 18, 2024 that will close this issue
@Druue Druue added this to the 5.18.0 milestone Jul 18, 2024
@Druue Druue self-assigned this Jul 18, 2024
@Druue Druue added the topic: references LSP References label Jul 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/feature A request for a new feature. topic: language server topic: references LSP References
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants