xpodev / local-history

Visual Studio Code extension for maintaining files versions
https://marketplace.visualstudio.com/items?itemName=xpo.local-history
12 stars 2 forks source link

First edit of a file does not get recorded #14

Open EricLendvai opened 1 year ago

EricLendvai commented 1 year ago

I am using "files.autoSave": "onFocusChange", and after installing the extension, any file being edited the first time does not have its difference recorded.

FYI, your extension works in devcontainers! The timeline VSCode feature saves changes inside the devcontainer, which is lost when the container is rebuilt. Meaning the 15 million dev container extension users should also use yours!

neriyaco commented 1 year ago

Hi, Are you working in a workspace?

Also, thank you! Your comment made me return to develop this extension.

EricLendvai commented 1 year ago

Yes when I reported the problem I was using a workspace. So I made a simple test, under Windows. In a new folder from the command prompt I run the following

echo ThisIsATest >ThisIsATest.txt code .

Then from withing VSCode I edit the ThisIsATest.txt And when I check it in local-history the diff does not show a difference. Hope this help, Eric

neriyaco commented 1 year ago

Will check and update Thanks