godotengine / godot-vscode-plugin

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

Fix broken scene file parser #603

Closed DaelonSuzuka closed 4 months ago

DaelonSuzuka commented 4 months ago

Fixes #600

The Scene Preview panel was failing to render certain scene files. The cause turned out to be a new(?) field in the node section header, nodes_paths.

These section headers were being found and parsed in a single overly-large regex, which did not tolerate the addition of the new field. The fix is splitting the work into one regex that finds the section header, and multiple smaller regexes that extract each field individually.