IssueRaiser

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)

Allow to configure editor auto reload behaviour

dmlemosMar 23, 2017, 4:02 PM

**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.

Comment on this issue