code icon indicating copy to clipboard operation
code copied to clipboard

Losing data when multiple tabs are open

Open rmeyerson opened this issue 7 years ago • 4 comments

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.

rmeyerson avatar Oct 25 '18 14:10 rmeyerson

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

davidmhewitt avatar Oct 25 '18 15:10 davidmhewitt

"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.

rmeyerson avatar Oct 25 '18 16:10 rmeyerson

I noticed that document saving and undo becomes unreliable when using split view. Fix for that is in PR #529.

markodp avatar Oct 25 '18 19:10 markodp

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

ghost avatar Nov 29 '18 01:11 ghost