You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't update or ask to update file content if it is changed on file system #20876
bugIssue identified by VS Code Team member as probable bugfile-watcherFile watcherinfo-neededIssue requires more information from posterlinuxIssues with VS Code on Linux
Go to command line. Revert the changes using GIT GUI.
come back to vscode. It doesn't change the file contents. I doesn't event prompt that the file has been changed on file system, do you want to reload? or something similarly.
Reacted by Ben Creasy, Andrew Kincaid, Guido, Guillaume Dube, Vitaly Rybnikov, Diogo Lemos and Enrico Sacchetti
Both issues are slightly different. issue #14298 says that the contents of files are changed without prompt. While this issue says that the contents of the files are not being changed even when the file is externally modified.
Amit K Gupta (@amitguptagwl) maybe I misunderstood the issue. you actually say that you changed the file outside and this change was not reflected in the editor? so you actually want it to update but it did not happen?
So as I mentioned, I done some changes in a file. saved the changes. open git gui. reverted the changes. I came back to vscode editor. Neither it prompts me that the file has been changed on the disk nor it loaded the new contents. Now when I closed the file it asked me to save the changes which confused me as I have already reverted the changes.
Amit K Gupta (@amitguptagwl) to be clear: you had changes (not saved) in the file and you reverted the file via git and now you would expect that the dirty file is also being reverted as a matter of that?
I have saved changes -> I reverted file via git -> vscode did nothing (some prompt expected) -> I closed file in vscode -> it asked me to save the changes again (not expected)
I have saved and unsaved changes -> I reverted file via git -> vscode did nothing (some prompt expected) -> I closed file in vscode -> it asked me to save the changes again (not expected)
changed the title [-]Inform when a file has changed on disk and allow to apply changes even when file is dirty[/-][+]Don't update or ask to update file content if it is changed on file system[/+]on Apr 1, 2018
bugIssue identified by VS Code Team member as probable bugfile-watcherFile watcherinfo-neededIssue requires more information from posterlinuxIssues with VS Code on Linux
Activity
bpasero commentedon Feb 19, 2017
#14298
amitguptagwl commentedon Feb 19, 2017
Both issues are slightly different. issue #14298 says that the contents of files are changed without prompt. While this issue says that the contents of the files are not being changed even when the file is externally modified.
bpasero commentedon Feb 19, 2017
Amit K Gupta (@amitguptagwl) maybe I misunderstood the issue. you actually say that you changed the file outside and this change was not reflected in the editor? so you actually want it to update but it did not happen?
amitguptagwl commentedon Feb 19, 2017
So as I mentioned, I done some changes in a file. saved the changes. open
git gui. reverted the changes. I came back to vscode editor. Neither it prompts me that the file has been changed on the disk nor it loaded the new contents. Now when I closed the file it asked me to save the changes which confused me as I have already reverted the changes.bpasero commentedon Feb 20, 2017
Amit K Gupta (@amitguptagwl) to be clear: you had changes (not saved) in the file and you reverted the file via git and now you would expect that the dirty file is also being reverted as a matter of that?
amitguptagwl commentedon Feb 20, 2017
Both ways it is behaving same.
bpasero commentedon Feb 20, 2017
Amit K Gupta (@amitguptagwl) got it
12 remaining items
[-]Inform when a file has changed on disk and allow to apply changes even when file is dirty[/-][+]Don't update or ask to update file content if it is changed on file system[/+]bpasero commentedon Apr 1, 2018
Renaming this back to the original title, I think the issue here is missing file events when doing operations outside of VSCode, e.g. git.
Amit K Gupta (@amitguptagwl) are you still seeing this frequently?
vscodebot commentedon Apr 8, 2018
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
dmlemos commentedon Apr 8, 2018
I have this issue. If files get changed on disk (with git), VS Code doesn't update them. Most of the times I just have to refresh the explorer.
jcrben commentedon Apr 26, 2018
fyi, I'm no longer seeing this on macOS 10.12.6 with vscode 1.22.2 👍
dmlemos commentedon Apr 26, 2018
Now I started seeing an new issue. When renaming a file via VS Code, sometimes it doesn't acknowledged it and I have to force refresh the explorer.
Using 1.22.2