godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.55k stars 164 forks source link

A named enum results in 'no symbols found' in outline #527

Open electroexecutioner opened 10 months ago

electroexecutioner commented 10 months ago

Godot version

4.1.1.stable.official

VS Code version

1.84.2

Godot Tools VS Code extension version

1.3.1

System information

Windows 10

Issue description

If a GDscript contains a named enum, the outline tab in the explorer fails to find symbols for the document.

Steps to reproduce

Create a named enum in a script. Unnamed enums do not cause a problem.

Screenshot (70) Screenshot (71) Screenshot (72)

DaelonSuzuka commented 10 months ago

image

This circle indicates that you have unsaved changes to this file. Is it possible that you just didn't save after you added the enum name?

It's possible that this has been fixed in the engine, because I can't replicate this behavior using Godot 4.2rc2:

image

DaelonSuzuka commented 7 months ago

@electroexecutioner Are you still experiencing this issue with extension version 2.0.0?