Skip to content

Don't update or ask to update file content if it is changed on file system #20876

Closed

Description

  • VSCode Version: 1.8.1
  • OS Version: Ubuntu 14.1

Steps to Reproduce:

  1. Open some file in vscode editor. Do some changes.
  2. Go to command line. Revert the changes using GIT GUI.
  3. 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.

Activity

  1. bpasero commented on Feb 19, 2017

    @bpasero
    Contributor
  2. added
    *duplicate
    on Feb 19, 2017
  3. amitguptagwl commented on Feb 19, 2017

    @amitguptagwl
    Author

    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.

  4. bpasero commented on Feb 19, 2017

    @bpasero
    Contributor

    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?

  5. added
    info-needed
    and removed
    *duplicate
    on Feb 19, 2017
  6. amitguptagwl commented on Feb 19, 2017

    @amitguptagwl
    Author

    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.

  7. bpasero commented on Feb 20, 2017

    @bpasero
    Contributor

    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?

  8. amitguptagwl commented on Feb 20, 2017

    @amitguptagwl
    Author

    Both ways it is behaving same.

    1. 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)
    2. 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)
  9. bpasero commented on Feb 20, 2017

    @bpasero
    Contributor
  10. added
    feature-request
    on Feb 20, 2017
  11. 12 remaining items

  12. added
    file-watcher
    and removed
    feature-request
    workbench-editors
    on Apr 1, 2018
  13. 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
  14. added
    bug
    on Apr 1, 2018
  15. bpasero commented on Apr 1, 2018

    @bpasero
    Contributor

    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?

  16. added
    linux
    info-needed
    on Apr 1, 2018
  17. vscodebot commented on Apr 8, 2018

    @vscodebot

    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!

  18. dmlemos commented on Apr 8, 2018

    @dmlemos

    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.

  19. jcrben commented on Apr 26, 2018

    @jcrben

    fyi, I'm no longer seeing this on macOS 10.12.6 with vscode 1.22.2 👍

  20. dmlemos commented on Apr 26, 2018

    @dmlemos

    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

  21. locked and limited conversation to collaborators on May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfile-watcherinfo-neededlinux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions