godotengine / godot-vscode-plugin

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

Auto refresh of the node tree in the scene preview #607

Open lilados opened 4 months ago

lilados commented 4 months ago

Godot version

4.2.1 stable mono

VS Code version

1.64.2

Godot Tools VS Code extension version

2.0.0

System information

Windows 10

Problem statement

The node tree in the scene preview tool doesn't refresh when the tree is changed.

Proposed solution

Make the scene preview get updated when changes are made in the node tree

DaelonSuzuka commented 4 months ago

It does do that.

StalOlympus commented 2 months ago

The scene preview is completely broken for me: resim resim

It was working fine and then all of a sudden it went completely off the rails. I uninstalled and reinstalled, closed and reopened the project. Nothing seemed to help.

Edit: Detaching the script on the root nodes and saving the scene makes it show on the preview. But if you add the script again it doesn't work. It may be about export references too.

DaelonSuzuka commented 2 months ago

That's an interesting failure mode. Can you upload the script that causes it to break?

StalOlympus commented 2 months ago

That's an interesting failure mode. Can you upload the script that causes it to break? I actually opened an issue about it. https://github.com/godotengine/godot-vscode-plugin/issues/646