Closed
Description
Tested versions
- Reproducible in: 4.2.1.stable
System information
Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 Ti (NVIDIA; 31.0.15.5123) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
When a script is open in the Godot editor and I make changes in my external editor, the next time I save in Godot it'll save the old code from Godot's script editor. Sometimes it overwrites the code in the external editor too making me lose progress unless I had the script open in VS Code to undo the changes.
Godot.Vs.Code.Saving.Problem.mp4
Steps to reproduce
I'm not 100% sure how to consistently reproduce this but I noticed that when I get an error it opens the script in the Godot editor.
- make an error in a script and run the game, which should open the script in Godots script editor
- make changes to the script in VS Code (add an export variable so you can see if the code reverts back or not in the inspector)
- save in VS Code
- go back to Godot
- save the scene
- the code should now revert back to how it was before making the changes, which can be seen by the exported variables disappearing in the inspector
Minimal reproduction project (MRP)
N/A
Activity