Skip to content
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

Provide Symbols to VSCode #751

Closed
iddan opened this issue Mar 25, 2021 · 5 comments · Fixed by #1229
Closed

Provide Symbols to VSCode #751

iddan opened this issue Mar 25, 2021 · 5 comments · Fixed by #1229
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: language server
Milestone

Comments

@iddan
Copy link

iddan commented Mar 25, 2021

Problem

When editing Prisma Schema in VSCode I can't search for symbols as the language server does not provide them.

Suggested solution

Provide VSCode symbol information about the models, fields, and generators in the file.

Additional context

https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_symbol

@carmenberndt carmenberndt added kind/feature A request for a new feature. topic: language server labels Apr 1, 2021
@tomhoule tomhoule added the team/schema Issue for team Schema. label Sep 23, 2021
@dariusj18
Copy link

This would be a huge help in navigating a schema file.

@Jolg42
Copy link
Member

Jolg42 commented Nov 3, 2021

@dariusj18 What are your expectations here? Which symbols do you want to see?

@Jolg42
Copy link
Member

Jolg42 commented Nov 3, 2021

Note: this video shows how it would work for example https://www.youtube.com/watch?v=SyZXIuGfUFI

@dariusj18
Copy link

dariusj18 commented Nov 3, 2021

At the very least each model/enum showing up as a symbol would be useful. If I could hit Ctrl+Shift+O and start typing a model name to navigate to it quickly, it would be a much cleaner thing than hitting Ctrl+F and typing "model MODELNAME"

Plus the Outline view would become useful.

@Jolg42 Jolg42 added the process/candidate Candidate for next Milestone. label Nov 4, 2021
@tomhoule tomhoule removed the process/candidate Candidate for next Milestone. label Nov 17, 2021
@KhanhHH
Copy link

KhanhHH commented Aug 11, 2022

Need more attention for this feature, navigating in a large schema is painful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: language server
Development

Successfully merging a pull request may close this issue.

6 participants