{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/3261","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/3261/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/3261/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/3261/events","html_url":"https://github.com/Microsoft/vscode/issues/3261","id":135531293,"number":3261,"title":"[folding] Please do not call setHiddenAreas on each model change!","user":{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars.githubusercontent.com/u/5047891?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"E57E7E"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/folding","name":"folding","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/important","name":"important","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars.githubusercontent.com/u/5047891?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/12","html_url":"https://github.com/Microsoft/vscode/milestones/Feb%202016","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/12/labels","id":1512192,"number":12,"title":"Feb 2016","description":null,"creator":{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":324,"state":"open","created_at":"2016-01-18T10:26:06Z","updated_at":"2016-02-26T14:45:10Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-22T20:14:29Z","updated_at":"2016-02-26T14:51:46Z","closed_at":"2016-02-25T17:14:39Z","body":"Just noticed some scrollLeft jumping around when editing near the end of lines that are scrolled.\r\nIt jumps around because I reset the cached max line width on a view model flush event.\r\nIt is really unexpected to get on each type a view model flush, almost the entire view is trashed away!.\r\n\r\nI noticed the folding permanently calls setHiddenAreas after each model change. This is not good."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/189310956","html_url":"https://github.com/Microsoft/vscode/issues/3261#issuecomment-189310956","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/3261","id":189310956,"user":{"login":"aeschli","id":6461412,"avatar_url":"https://avatars.githubusercontent.com/u/6461412?v=3","gravatar_id":"","url":"https://api.github.com/users/aeschli","html_url":"https://github.com/aeschli","followers_url":"https://api.github.com/users/aeschli/followers","following_url":"https://api.github.com/users/aeschli/following{/other_user}","gists_url":"https://api.github.com/users/aeschli/gists{/gist_id}","starred_url":"https://api.github.com/users/aeschli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeschli/subscriptions","organizations_url":"https://api.github.com/users/aeschli/orgs","repos_url":"https://api.github.com/users/aeschli/repos","events_url":"https://api.github.com/users/aeschli/events{/privacy}","received_events_url":"https://api.github.com/users/aeschli/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T14:51:46Z","updated_at":"2016-02-26T14:51:46Z","body":"I added code to avoid calling setHiddenAreas unless a folded region has been updated."}}