GDQuest / zed-gdscript

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

Outline move for script symbols #12

Closed ygingras closed 2 months ago

ygingras commented 3 months ago

It would be great to have the outline and be able to jump to any of the symbols defined in a GDScript file like the build-in Godot editor does or even the godot-tools extension for VS Code.

NathanLovato commented 2 months ago

I just added support for inner classs and functions to the outline in the development version of the extension. What other symbols would you like to be able to see in the outline? Do you want all properties, enums, constants? For inner classes too? Can you think of something else?

image

ygingras commented 2 months ago

Looks great!

One big one would be the signals since they are part of the public API of a Node.

NathanLovato commented 2 months ago

Thanks! Here's where I'm at right now. I still need to wrap my head around this query language as I couldn't find a way to get autocomplete or a clear reference of the available grammar/keywords/whatever.

image

Does this look fine by you? What changes would you expect? Right now what I see is it captures local variables so it goes too deep. I don't know yet how to limit the nesting level.

ygingras commented 2 months ago

This looks perfect!

NathanLovato commented 2 months ago

Cool, closing this then! I'd still like to make some improvements but I'll log a separate issue. Completed in 0d68ea2eae22ec70331181b462c43b081e134c94