iamhyc / Overleaf-Workshop

Open Overleaf/ShareLaTex projects in vscode, with full collaboration support.
https://marketplace.visualstudio.com/items?itemName=iamhyc.overleaf-workshop
GNU Affero General Public License v3.0
476 stars 10 forks source link

Updated files are overwritten with an older version after starting VSCode #175

Closed bitosky closed 1 month ago

bitosky commented 1 month ago

Describe the bug

I did some update outside VSCode. After that, I started VSCode, but overleaf workshop download the old version of these files replaces the new versions.

Expected behavior

The overleaf workshop should compare the file versions, and upload the new version files to overleaf.

How To Reproduce

Just like the above descriptoins.

Environment

[Optional] Developer Logs

If applicable, please paste the logs inside the details section below. Please find the logs via: Title bar "Help" > "Toggle Developer Tools" > "Console".

...
iamhyc commented 1 month ago

The question is that: the local folder does not have a version to compare with.

Every time when the overleaf project is open in vscode, the local folder will be force overwritten to follow the latest version. It is the expected behavior.

To void the temporary changes got overwritten, you can use local version system like git.

iamhyc commented 1 month ago

Since there is no more feedback, I will mark this issue as a "question" and close it now.