zed-gdscript icon indicating copy to clipboard operation
zed-gdscript copied to clipboard

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

Open ygingras opened this issue 1 year ago • 2 comments

I'm submitting a...

  • [ ] Bug report.
  • [x] Feature request.

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.

ygingras avatar Aug 28 '24 01:08 ygingras

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

NathanLovato avatar Aug 28 '24 07:08 NathanLovato

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

ygingras avatar Aug 28 '24 14:08 ygingras