You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VSCode with the Godot extension, symbols in the Outline panel only display under specific conditions involving the placement of extends and class_name declarations in GDScript files.
Instances When Symbols Work:
extends is on the first line, with or without class_name in the script.
extends is on the first line and class_name on the second line.
extends is on the second line, with class_name on the third line.
class_name is on the second line, with extends on the third line.
A comment is on the first line, followed by class_name on the second line and extends on the third line.
Instances When Symbols Don’t Work:
The first line is empty, and extends is on any other line (without class_name in the script).
A comment is on the first line, and extends is on any other line (without class_name in the script).
class_name is on the first line, and extends is on any other line.
In summary, symbols only appear if extends is on the first line in scripts without class_name. If class_name is present, extends can appear on any line, but symbols fail to display if class_name is the first line and extends appears afterward.
Expected Behavior:
Symbols should populate in the Outline regardless of the line position of class_name and extends declarations, allowing flexibility in script structure, such as placing comments or leaving the first line empty, without affecting the Outline's functionality.
Steps to reproduce
See the attached script files and try out the different scenarios listed in the description
Godot version
4.3 stable
VS Code version
1.94.2
Godot Tools VS Code extension version
2.3.0
System information
Windows 10 Pro
Issue description
In VSCode with the Godot extension, symbols in the Outline panel only display under specific conditions involving the placement of
extends
andclass_name
declarations in GDScript files.Instances When Symbols Work:
extends
is on the first line, with or withoutclass_name
in the script.extends
is on the first line andclass_name
on the second line.extends
is on the second line, withclass_name
on the third line.class_name
is on the second line, withextends
on the third line.class_name
on the second line andextends
on the third line.Instances When Symbols Don’t Work:
extends
is on any other line (withoutclass_name
in the script).extends
is on any other line (withoutclass_name
in the script).class_name
is on the first line, andextends
is on any other line.In summary, symbols only appear if
extends
is on the first line in scripts withoutclass_name
. Ifclass_name
is present,extends
can appear on any line, but symbols fail to display ifclass_name
is the first line andextends
appears afterward.Expected Behavior:
Symbols should populate in the Outline regardless of the line position of
class_name
andextends
declarations, allowing flexibility in script structure, such as placing comments or leaving the first line empty, without affecting the Outline's functionality.Steps to reproduce
See the attached script files and try out the different scenarios listed in the description
The text was updated successfully, but these errors were encountered: