godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

Cannot view properties of an object extending Resource type during debugging. #660

Open zarstensen opened 1 month ago

zarstensen commented 1 month ago

Godot version

4.2.stable

VS Code version

1.89.1

Godot Tools VS Code extension version

2.0.0

System information

Windows 10

Issue description

Resource variables only show the resource id instead of all the resources properties, when inspecting variables during debugging.

Expected:

CustomResource extends from Object, properties are displayed as expected. image

Actual:

CustomResource extends from Resource, only an "id" property is displayed. image

Steps to reproduce

Below is the code used to generate the above screenshots:

root_node.gd

extends Node

func _ready() -> void:
    var custom_resource: CustomResource = CustomResource.new()

    custom_resource.resource_variable = 42

    breakpoint

custom_resource.gd

class_name CustomResource
extends Resource

@export
var resource_variable := -9999