{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/atom/issues/7363","labels_url":"https://api.github.com/repos/atom/atom/issues/7363/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/7363/comments","events_url":"https://api.github.com/repos/atom/atom/issues/7363/events","html_url":"https://github.com/atom/atom/issues/7363","id":90058318,"number":7363,"title":"Directory::onDidChange / File::onDidChange fire twice on file save if file not empty","user":{"login":"paulpflug","id":1881921,"avatar_url":"https://avatars.githubusercontent.com/u/1881921?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpflug","html_url":"https://github.com/paulpflug","followers_url":"https://api.github.com/users/paulpflug/followers","following_url":"https://api.github.com/users/paulpflug/following{/other_user}","gists_url":"https://api.github.com/users/paulpflug/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpflug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpflug/subscriptions","organizations_url":"https://api.github.com/users/paulpflug/orgs","repos_url":"https://api.github.com/users/paulpflug/repos","events_url":"https://api.github.com/users/paulpflug/events{/privacy}","received_events_url":"https://api.github.com/users/paulpflug/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T09:58:09Z","updated_at":"2015-06-23T15:25:44Z","closed_at":"2015-06-23T15:25:44Z","body":"```coffee\r\nconsole.log \"watching\"\r\nfired = false\r\nentry.onDidChange ->\r\n  console.log \"fire\"\r\n  unless fired\r\n    fired = true\r\n    console.log \"real fire\"\r\n    setTimeout (->fired = false), 1000\r\n```\r\nOutput:\r\n```\r\nwatching\r\n## saving empty file\r\nfire\r\nreal fire\r\n## saving file with content\r\nfire\r\nreal fire\r\nfire"}}