Losing data when multiple tabs are open
I am not exactly sure what is causing this, but occasionally I will save my file with (CTRL+s) and exit out of the tab. Then, when I open it again, it will be a previous version of the file.
Additionally, when I open a new tab, an older version of a file that is currently open will appear.
I am on a Thinkpad X220 with a relatively fresh install of ElementaryOS Juno.
Thanks for the bug report! I think we'll need a little more information from you in order to try and help diagnose this:
Have you changed any settings in code? i.e. Is "save files when changed" enabled or disabled? Do you use the split view to do side by side editing? What extensions do you have enabled?
Also, if you could take a look at the following bug reports and see if any of these sound like they might be related, that would be very helpful: #7, #381, #228
I'm currently working on a branch that fixes some of these bugs here if you wanted to try it and see if it becomes any more reliable for you: #527
"save files when changed" is enabled. I have "detect indent", "editorConfig", "Outline", and "Terminal" enabled.
I do use the split view when doing side by side editing.
It seems similar to #228, but I believe I have experienced this both with and without making external modifications. Although it often happens while I have the terminal (the one that is part of Code) open.
I noticed that document saving and undo becomes unreliable when using split view. Fix for that is in PR #529.
I believe the "save files when changed" setting implementation is to blame, not multiple tabs. I lose data with or without multiple tabs open :( See my comments in #381