This issue may or may not be related to this this issue. I’m new to Godot, and working through a tutorial, and I’m also using VSCode with godot-tools. What I’ve noticed is when I duplicate a node with connections, then remove the connections from the duplicated node and add new connections to it, it erases the last bit of code I’ve created. Sometimes it erases nearly the whole file, sometimes it only erases a few lines. It’s not just the functions related to the signals either, I’ve had it erase the _physics_process function.
I’m making sure to sage the .gd file before making changes in the godot editor. I’ve also tried saving in the editor after duplicating the node, before doing anything with the connections. Does anyone else using vscode experience the same issue?
i mean signal connections. I actually did some more testing since posting this question and found that simply duplicating a node that has a signal alone is enough to reproduce the issue, without even disconnecting or reconnecting the signal.
I am also experiencing this issue. If I don’t have an editor open, it flushes the changes to disk and I can’t revert either. If I do have an editor open, I can at least Ctrl+Z the new connection. Super frustrating
Hi
I also had this problem because sometime it deleted parts of my code changes, I use the current version of the vscode extension from github but I compile on the fly as there are changes. In my case it turned out that in the debugger in the godot editor you have to check the option “Debug with External Editor” and that helps me.
Thanks, checking that box worked for me as well (after a project reload as well), but it seems kind of weird that such a hidden check box is required to prevent the node signal connection stuff from deleting code…