Allow to configure editor auto reload behaviour
**VSCode Version:** 1.10.2 **OS Version:** macOS 10.12.3 **Steps to Reproduce:** 1. Open editor 2. Modify a file in your git repository, but don't save it 3. Checkout a different branch that touches the same file 4. Go back to the editor and try to save 5. ERROR: "Failed to save 'file1': The content on disk is newer. Click on Compare to compare your version with the one on disk." Personally I would like to see the files being reload from the disk every time without prompt. With git I don't have to worry about losing history. Similar to how SublimeText works. When the files change in disk (ex: change of branches), they get automatically reloaded, independently of their current state in the editor. I prefer this behaviour, rather than having to confirm reloads. With that said however, **there must be options for all the use cases**. Many people prefer to be notified of changes in their files! Suggestion to add an `editor.autoReload` parameter in order to control this behaviour. Possible values: * `Always` - reload from disk without prompt * `Confirm` - show a prompt confirmation to either accept or discard the changes * `Backup` - show the file with the new changes automatically, but always backup the old state to 'filename.bak' * `Never` - current behaviour? Evolved the idea from @rmunn on [#23043](https://github.com/Microsoft/vscode/issues/23043#issuecomment-288601201) issue. Decided it was best to create a separate issue for this. EDIT: Made it clear that it is mandator
Posted by dmlemos on Mar 23, 2017, 4:02 PM
Tags
Related issues
Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments
github (E-commerce)
proposal: cmd/cgo: cgo without a C toolchain
Replace PowerToys Run with Command Palette
VPS with a vRack leg
Possibility of Portal 1 Code Inclusion
Introducing NewPlayer
Metrics for PRs are never expiring ("memory leak")
ship even more of the compiler in source form
Flatpak Application TRACKING ISSUE
Allow to configure editor auto reload behaviour
**VSCode Version:** 1.10.2 **OS Version:** macOS 10.12.3 **Steps to Reproduce:** 1. Open editor 2. Modify a file in your git repository, but don't save it 3. Checkout a different branch that touches the same file 4. Go back to the editor and try to save 5. ERROR: "Failed to save 'file1': The content on disk is newer. Click on Compare to compare your version with the one on disk." Personally I would like to see the files being reload from the disk every time without prompt. With git I don't have to worry about losing history. Similar to how SublimeText works. When the files change in disk (ex: change of branches), they get automatically reloaded, independently of their current state in the editor. I prefer this behaviour, rather than having to confirm reloads. With that said however, **there must be options for all the use cases**. Many people prefer to be notified of changes in their files! Suggestion to add an `editor.autoReload` parameter in order to control this behaviour. Possible values: * `Always` - reload from disk without prompt * `Confirm` - show a prompt confirmation to either accept or discard the changes * `Backup` - show the file with the new changes automatically, but always backup the old state to 'filename.bak' * `Never` - current behaviour? Evolved the idea from @rmunn on [#23043](https://github.com/Microsoft/vscode/issues/23043#issuecomment-288601201) issue. Decided it was best to create a separate issue for this. EDIT: Made it clear that it is mandator
Comments (0)
No comments yet. Start the discussion.