flathub / org.godotengine.Godot

Godot engine
https://flathub.org/apps/details/org.godotengine.Godot
39 stars 25 forks source link

Cannot use VS Code as external editor #55

Closed knuxbbs closed 4 years ago

knuxbbs commented 4 years ago

This flatpack version of Godot cannot open Visual Studio Code as an external editor, as indicated in the docs.

I've tested with the Steam version, and this worked finely.

Calinou commented 4 years ago

I'm not sure if this can work out of the box due to sandboxing. Perhaps we could patch Godot to use flatpak-spawn behind the scenes to run the external editor, like in https://github.com/flathub/org.godotengine.Godot/pull/38.

Maybe it works if you set the external editor to flatpak and set the arguments to run com.visualstudio.code {file}?

Also, are you using Visual Studio Code in a Flatpak or installed traditionally?

knuxbbs commented 4 years ago

I'm using the official snap.