GDQuest / zed-gdscript

Zed support for the GDScript language
MIT License
23 stars 10 forks source link

Add support for workspace symbols (project-wide symbol search) #30

Open ygingras opened 2 weeks ago

ygingras commented 2 weeks ago

I'm submitting a...

Feature request

`

Describe the problem you're trying to solve.

The new outline tree greatly speeds up navigation inside a file. Navigation could be improved even further by adding the tokens that populate the outline tree as project symbols. This way, we could jump to them inside and across files with the "project symbols: toggle" command (CTRL+ALT+F on my system). This would behave roughly like the "Go To Function..." command in the built-in Godot editor.

NathanLovato commented 2 weeks ago

As far as I know, workspace symbols are a feature of language servers, so they depend on the language server in the Godot engine. And it's not supported by Godot currently.

Do you know if Zed has a built-in way to walk the project and parse it with tree sitter to populate workspace symbols? Or you have like to code your own language server to provide that (in that case, it would be better to just add it to Godot's core)?

Related: https://github.com/GDQuest/zed-gdscript/issues/28

ygingras commented 2 weeks ago

I am very new to Zed and I'm not sure what features it offers for a project-wide symbols discovery.