microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.47k stars 28.64k forks source link

VSCode generates random _conflict files #45354

Closed userlip closed 6 years ago

userlip commented 6 years ago

Issue: Sometimes when coding there appears a random file that is name *originalfile*_conflict-time so sometimes I edit the file and then VSCode just bumps me into this _conflict file and all the changes to the original file are gone and the changes only appear the conflict file.

My first guess is, that is git, but I removed/disabled all git components in VSCode but this keeps happening and its frustrating having to keep record of the same file multiple times because sometimes even the conflict file does "conflict" itself again so there are multiple conflict files and I cant track where I changed code.

No new extensions before or after this happened.

Picture here:

https://i.imgur.com/0QPB9Rv.jpg

vscodebot[bot] commented 6 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

kieferrm commented 6 years ago

I'm unaware of anything in the VS Code core that would generate conflict files. I'd suspect this is one of your extensions. Which ones do you have installed? You can run code --list-extensions on the command line.

userlip commented 6 years ago

Those are the extensions I have. Did not add anything recently though and this issue is quiet new.

kieferrm commented 6 years ago

@userlip Do you see the same problem when you restart from the command line with code --disable-extensions. If not, one of the extensions is causing the issue. There is no easy way to figure this out rather than bisecting. I.e. disable one after the other and see if it's still happening. When you find the extension, pls close this issue and file the issue against the extension. BTW, extensions auto-update in the background, so you might have gotten new versions of your extensions without realizing it. Thanks a ton for your help!

userlip commented 6 years ago

Problem found: Nextcloud was the reason those files were created, not Git nor VSCode nor any extension.

Thanks for all the help!