{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/7760","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/7760/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/7760/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/7760/events","html_url":"https://github.com/Microsoft/vscode/issues/7760","id":160622201,"number":7760,"title":"[folding] Code Folding might be having a bug","user":{"login":"memmaina","id":5434496,"avatar_url":"https://avatars.githubusercontent.com/u/5434496?v=3","gravatar_id":"","url":"https://api.github.com/users/memmaina","html_url":"https://github.com/memmaina","followers_url":"https://api.github.com/users/memmaina/followers","following_url":"https://api.github.com/users/memmaina/following{/other_user}","gists_url":"https://api.github.com/users/memmaina/gists{/gist_id}","starred_url":"https://api.github.com/users/memmaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memmaina/subscriptions","organizations_url":"https://api.github.com/users/memmaina/orgs","repos_url":"https://api.github.com/users/memmaina/repos","events_url":"https://api.github.com/users/memmaina/events{/privacy}","received_events_url":"https://api.github.com/users/memmaina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/folding","name":"folding","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"fef2c0"}],"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":2,"created_at":"2016-06-16T09:52:53Z","updated_at":"2016-07-25T20:04:03Z","closed_at":"2016-07-25T20:04:03Z","body":"- VSCode Version: 1.2.1\r\n- OS Version: Windows 10\r\n\r\nSteps to Reproduce:\r\n1. Copy the code below in VS code\r\n2. Try folding the function\r\n3. Notice that the folding is note as expected\r\n\r\n**CODE**\r\n\r\n```javascript\r\nfunction somefunction(){\r\n\tvar myhtml='<div class=\"form-group\">'+\r\n\t\t\t\t\t'<label for=\"age1\" class=\"control-label\">Minimum Age</label><div class=\"clearfix\"></div>'+\r\n\t\t\t\t\t'<input type=\"number\" id=\"age1\" name=\"age1\" class=\"form-control num-only\" min=\"0\" step=\"1\" value=\"0\"  />'+\r\n\t\t\t\t'</div>'+\r\n\t\t\t\t'<div class=\"form-group\">'+\r\n\t\t\t\t\t'<label for=\"age2\" class=\"control-label\">Maximum Age</label><div class=\"clearfix\"></div>'+\r\n\t\t\t\t\t'<input type=\"number\" id=\"age2\" name=\"age2\" class=\"form-control num-only\" max=\"100\" step=\"1\" value=\"100\"  />'+\r\n\t\t\t\t'</div>';\r\n\tvar bootbx = bootbox.dialog({\r\n\t\ttitle:'AGE',\r\n\t\tmessage:myhtml,\r\n\t\tbuttons: {\r\n\t\t\tsuccess: {\r\n\t\t\t\tlabel: \"Submit\",\r\n\t\t\t\tclassName: \"btn-success\",\r\n\t\t\t\tcallback: function () {\r\n\t\t\t\t\tif ($('#age1').val()==''){ alert ('Please enter the minimum Age'); return false;}\r\n\t\t\t\t\tif ($('#age2').val()==''){ alert ('Please enter the maximum Age'); return false;}\r\n\t\t\t\t\tvar fdata={min:$('#age1').val(),max:$('#age2').val()}\r\n\t\t\t\t\tvar obj = JSON.stringify(fdata)\r\n\t\t\t\t\tvar dataR3 = ajaxAPICall('POST',obj,'api/age',\"application/json\");\r\n                        dataR3.success(function (data) {\r\n\t\t\t\t\t\tif (data.response=\"success\"){\r\n\t\t\t\t\t\t\t//some data\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}) //Data\r\n\t\t\t\t} // Callback\r\n\t\t\t} //success\r\n\t\t}//Buttons\r\n\t})//bootbx\r\n} /* !Function configAge*/\r\n```\r\n"}}
{"actor":{"display_login":"aeschli"}}