{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/5132","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/5132/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/5132/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/5132/events","html_url":"https://github.com/Microsoft/vscode/issues/5132","id":147241505,"number":5132,"title":"Code Folding Oddity with Indented Subsequent Lines","user":{"login":"mrkiley","id":236473,"avatar_url":"https://avatars.githubusercontent.com/u/236473?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkiley","html_url":"https://github.com/mrkiley","followers_url":"https://api.github.com/users/mrkiley/followers","following_url":"https://api.github.com/users/mrkiley/following{/other_user}","gists_url":"https://api.github.com/users/mrkiley/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkiley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkiley/subscriptions","organizations_url":"https://api.github.com/users/mrkiley/orgs","repos_url":"https://api.github.com/users/mrkiley/repos","events_url":"https://api.github.com/users/mrkiley/events{/privacy}","received_events_url":"https://api.github.com/users/mrkiley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/question","name":"question","color":"E2A1C2"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":3,"created_at":"2016-04-10T17:08:00Z","updated_at":"2016-07-11T22:27:51Z","closed_at":"2016-04-20T21:01:35Z","body":"- VSCode Version: 0.10.11\r\n- OS Version: Mac OS X El Capitan (10.11.4)\r\n\r\n**Steps to Reproduce:** I honestly am not sure how to reproduce it because I have tried and it does not. So I just took a series of screenshots so that maybe you guys could figure out the pattern. It has not been causing any issues for me at all, except for seeming weird. Hopefully it doesn't affect anyone's code, but I know sometimes a seemingly-small problem can turn out to balloon later on, so I just wanted to help you catch it just in case it does! :)\r\n\r\n**Problem:** When collapsing blocks of code (in this case line # 253), the one in the photo collapses, but then offers me a \"minus sign\" to collapse an un-collapsable line (# 273). It seems to collapse the one line of whitespace after it (# 274), and that's it. But it is a closing brace.\r\n\r\n**Hypothesis:** Since I have an indented block of code (starting line # 275) beneath the property that I am defining on line # 253, I believe it is trying to alert me that I can close it. If so, and if issue is a feature not a bug, that feature is very confusing/unclear. (see Image 4)\r\n\r\nIf in fact my hypothesis is correct, may I suggest using a different icon to indicate the ability to collapse indented lines beneath an object (which really does make sense, but again, is unclear in the context of collapsing the code blocks above it), since it is not technically an encapsulated code block that is being collapsed.\r\n\r\n**Image 1**\r\n<img width=\"891\" alt=\"code folding 1\" src=\"https://cloud.githubusercontent.com/assets/236473/14411667/cdd18f6e-ff03-11e5-844d-89c905422e30.png\">\r\n\r\n**Image 2**\r\n<img width=\"497\" alt=\"code folding 2\" src=\"https://cloud.githubusercontent.com/assets/236473/14411669/cdd2226c-ff03-11e5-9100-43185accf074.png\">\r\n\r\n**Image 3**\r\n<img width=\"569\" alt=\"code folding 3\" src=\"https://cloud.githubusercontent.com/assets/236473/14411668/cdd21100-ff03-11e5-88fc-ee74c5bd580c.png\">\r\n\r\n**Image 4**\r\n<img width=\"532\" alt=\"code folding 4\" src=\"https://cloud.githubusercontent.com/assets/236473/14411713/ec868684-ff04-11e5-8d9c-70fd1fe24758.png\">\r\n\r\nAwesome IDE and great job folks! =)"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/231884842","html_url":"https://github.com/Microsoft/vscode/issues/5132#issuecomment-231884842","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/5132","id":231884842,"user":{"login":"mrkiley","id":236473,"avatar_url":"https://avatars.githubusercontent.com/u/236473?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkiley","html_url":"https://github.com/mrkiley","followers_url":"https://api.github.com/users/mrkiley/followers","following_url":"https://api.github.com/users/mrkiley/following{/other_user}","gists_url":"https://api.github.com/users/mrkiley/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkiley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkiley/subscriptions","organizations_url":"https://api.github.com/users/mrkiley/orgs","repos_url":"https://api.github.com/users/mrkiley/repos","events_url":"https://api.github.com/users/mrkiley/events{/privacy}","received_events_url":"https://api.github.com/users/mrkiley/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T22:27:51Z","updated_at":"2016-07-11T22:27:51Z","body":"@aeschli you are correct. Sorry for such a late reply on this! Basically, it looked to me like it was folding based on knowing that I was implicitly making those properties into sub-properties of the property defined at line 253-273. I think it works as expected based on what you said, but certainly would be confusing for anyone who doesn't understand what it's doing. It honestly works fine for when I indent blocks like that, because then I can collapse the implied sub-code.\r\n\r\nI also agree with you that language knowledge would help as well.\r\n\r\nThanks!"}}
{"actor":{"display_login":"mrkiley"}}