{"action":"created","issue":{"url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/43","repository_url":"https://api.github.com/repos/dynamicdan/sn-filesync","labels_url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/43/comments","events_url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/43/events","html_url":"https://github.com/dynamicdan/sn-filesync/issues/43","id":225675452,"node_id":"MDU6SXNzdWUyMjU2NzU0NTI=","number":43,"title":"Visual Studio: Local file sometimes overwritten during sync (atomic save)","user":{"login":"mak42","id":6708502,"node_id":"MDQ6VXNlcjY3MDg1MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/6708502?v=4","gravatar_id":"","url":"https://api.github.com/users/mak42","html_url":"https://github.com/mak42","followers_url":"https://api.github.com/users/mak42/followers","following_url":"https://api.github.com/users/mak42/following{/other_user}","gists_url":"https://api.github.com/users/mak42/gists{/gist_id}","starred_url":"https://api.github.com/users/mak42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mak42/subscriptions","organizations_url":"https://api.github.com/users/mak42/orgs","repos_url":"https://api.github.com/users/mak42/repos","events_url":"https://api.github.com/users/mak42/events{/privacy}","received_events_url":"https://api.github.com/users/mak42/received_events","type":"User","site_admin":false},"labels":[{"id":186686047,"node_id":"MDU6TGFiZWwxODY2ODYwNDc=","url":"https://api.github.com/repos/dynamicdan/sn-filesync/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-02T12:07:19Z","updated_at":"2018-06-28T19:03:11Z","closed_at":"2018-06-28T19:03:11Z","author_association":"NONE","body":"When using sn-filesync on windows 10 with vscode sometimes it happens that sn-filesync will pull the file from service-now instead of pushing it on save. It seems like sn-filesync assumes the file is empty during save and pulls it from the instance. Apparently you can't even Ctrl+Z to get back your changes, so you have data loss which is pretty annoying. Maybe I can provide a fix, currently looking into this issue. Anybody else can reproduce this behavior?"},"comment":{"url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/comments/401140055","html_url":"https://github.com/dynamicdan/sn-filesync/issues/43#issuecomment-401140055","issue_url":"https://api.github.com/repos/dynamicdan/sn-filesync/issues/43","id":401140055,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTE0MDA1NQ==","user":{"login":"dynamicdan","id":1011280,"node_id":"MDQ6VXNlcjEwMTEyODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1011280?v=4","gravatar_id":"","url":"https://api.github.com/users/dynamicdan","html_url":"https://github.com/dynamicdan","followers_url":"https://api.github.com/users/dynamicdan/followers","following_url":"https://api.github.com/users/dynamicdan/following{/other_user}","gists_url":"https://api.github.com/users/dynamicdan/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamicdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamicdan/subscriptions","organizations_url":"https://api.github.com/users/dynamicdan/orgs","repos_url":"https://api.github.com/users/dynamicdan/repos","events_url":"https://api.github.com/users/dynamicdan/events{/privacy}","received_events_url":"https://api.github.com/users/dynamicdan/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T19:03:11Z","updated_at":"2018-06-28T19:03:11Z","author_association":"OWNER","body":"Given that this issue is IDE specific and that most IDEs provide ways to configure how saves work on the file system, I will close this issue. The comments here server as good guides for anyone in the same situation. \r\n\r\nI especially like the creative solution of using a custom save command that triggers off the filesync `--push` option."}}
{"actor":{"display_login":"dynamicdan"}}