godotengine / godot-vscode-plugin

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

Add ability to open built-in scripts #171

Open Razoric480 opened 4 years ago

Razoric480 commented 4 years ago

At the moment, when trying to open a built-in script, nothing happens at all if you have your editor set external and to VSCode.

At the very least, it should open the TSCN file, though creating a temporary file or something of the sort - like what Godot does - would be even better (MyScene.tscn::1) as otherwise you have no features of the language server.

The workaround is to open the script editor, which does give you the script in question.

Though the debugger would also have to be edited to account for these files so it can transmit breakpoints. I'm just not sure on how to go about it.

Calinou commented 4 years ago

See also https://github.com/godotengine/godot/issues/31758. :stuck_out_tongue: