{"action":"created","issue":{"url":"https://api.github.com/repos/adobe/brackets/issues/11775","labels_url":"https://api.github.com/repos/adobe/brackets/issues/11775/labels{/name}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/11775/comments","events_url":"https://api.github.com/repos/adobe/brackets/issues/11775/events","html_url":"https://github.com/adobe/brackets/issues/11775","id":109722266,"number":11775,"title":"Brackets not loading code folding states","user":{"login":"derrickb","id":1793769,"avatar_url":"https://avatars.githubusercontent.com/u/1793769?v=3","gravatar_id":"","url":"https://api.github.com/users/derrickb","html_url":"https://github.com/derrickb","followers_url":"https://api.github.com/users/derrickb/followers","following_url":"https://api.github.com/users/derrickb/following{/other_user}","gists_url":"https://api.github.com/users/derrickb/gists{/gist_id}","starred_url":"https://api.github.com/users/derrickb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derrickb/subscriptions","organizations_url":"https://api.github.com/users/derrickb/orgs","repos_url":"https://api.github.com/users/derrickb/repos","events_url":"https://api.github.com/users/derrickb/events{/privacy}","received_events_url":"https://api.github.com/users/derrickb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-05T02:49:27Z","updated_at":"2015-10-17T00:09:48Z","closed_at":null,"body":"I'm not sure exactly when this started happening, but Brackets is no longer loading my code folding states after closing/reopening.\r\n\r\nI can see in my state.json that states are getting saved in there.  I tried deleting state.json and starting with a fresh one, but the states still aren't being loaded correctly.\r\n\r\nI have deleted several problematic extensions in the past week, one of which was the Custom Region Code Folding extension which was giving me issues, like not showing the fold arrow icon changing when folding/unfolding.  Is it possible there's something residual from that?\r\n\r\nThe other extensions I have installed:\r\nAutoprefixer, Brackets Outline List, Brackets Sort Text, CSSLint, Extension Rating, Minimap, Paste and Indent, Pop-up Menu Brackets, Preferences Setup UI, Visual Studio Dark theme"},"comment":{"url":"https://api.github.com/repos/adobe/brackets/issues/comments/148868716","html_url":"https://github.com/adobe/brackets/issues/11775#issuecomment-148868716","issue_url":"https://api.github.com/repos/adobe/brackets/issues/11775","id":148868716,"user":{"login":"derrickb","id":1793769,"avatar_url":"https://avatars.githubusercontent.com/u/1793769?v=3","gravatar_id":"","url":"https://api.github.com/users/derrickb","html_url":"https://github.com/derrickb","followers_url":"https://api.github.com/users/derrickb/followers","following_url":"https://api.github.com/users/derrickb/following{/other_user}","gists_url":"https://api.github.com/users/derrickb/gists{/gist_id}","starred_url":"https://api.github.com/users/derrickb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derrickb/subscriptions","organizations_url":"https://api.github.com/users/derrickb/orgs","repos_url":"https://api.github.com/users/derrickb/repos","events_url":"https://api.github.com/users/derrickb/events{/privacy}","received_events_url":"https://api.github.com/users/derrickb/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T00:09:48Z","updated_at":"2015-10-17T00:09:48Z","body":"@thehogfather I just followed your suggested steps and it worked! The folding states were remembered for both file 1 and file 2.\r\n\r\nI did a couple more experiments and I think I can verify that the fold states only save when you navigate away from that file.  So the repro seems to be:\r\n\r\nChange a fold state, and close Brackets.  State will NOT save.\r\nChange a fold state, click on a different working file, close Brackets.  State DID save.\r\n\r\nAlso, the working file you change focus to does NOT need to be in the same pane/view. In other words if I change a fold state in the left pane, and then change focus to a working file in the right pane, and close Brackets, the left pane file's states do load correctly when I reopen Brackets.\r\n\r\nOh, and all of this is on another fresh install of Brackets 1.5 plus a few extensions (Minimap, outline, pop-up menu)."}}