language-tools
language-tools copied to clipboard
Provide Symbols to VSCode
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
This would be a huge help in navigating a schema file.
@dariusj18 What are your expectations here? Which symbols do you want to see?
Note: this video shows how it would work for example https://www.youtube.com/watch?v=SyZXIuGfUFI
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.
Need more attention for this feature, navigating in a large schema is painful!