{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/38567","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/38567/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/38567/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/38567/events","html_url":"https://github.com/dotnet/roslyn/issues/38567","id":490566025,"node_id":"MDU6SXNzdWU0OTA1NjYwMjU=","number":38567,"title":"Unnecessary code colapse points ","user":{"login":"petrroll","id":1764721,"node_id":"MDQ6VXNlcjE3NjQ3MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1764721?v=4","gravatar_id":"","url":"https://api.github.com/users/petrroll","html_url":"https://github.com/petrroll","followers_url":"https://api.github.com/users/petrroll/followers","following_url":"https://api.github.com/users/petrroll/following{/other_user}","gists_url":"https://api.github.com/users/petrroll/gists{/gist_id}","starred_url":"https://api.github.com/users/petrroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrroll/subscriptions","organizations_url":"https://api.github.com/users/petrroll/orgs","repos_url":"https://api.github.com/users/petrroll/repos","events_url":"https://api.github.com/users/petrroll/events{/privacy}","received_events_url":"https://api.github.com/users/petrroll/received_events","type":"User","site_admin":false},"labels":[{"id":166377917,"node_id":"MDU6TGFiZWwxNjYzNzc5MTc=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7","default":false},{"id":165001069,"node_id":"MDU6TGFiZWwxNjUwMDEwNjk=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"e52727","default":false},{"id":409722162,"node_id":"MDU6TGFiZWw0MDk3MjIxNjI=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Investigation%20Required","name":"Investigation Required","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/2","html_url":"https://github.com/dotnet/roslyn/milestone/2","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/2/labels","id":937398,"node_id":"MDk6TWlsZXN0b25lOTM3Mzk4","number":2,"title":"Backlog","description":"This represents work which is not planned for a specific release.\r\n\r\n<!---\r\n@huboard:{\"order\":0.25}\r\n-->\r\n","creator":{"login":"jaredpar","id":146967,"node_id":"MDQ6VXNlcjE0Njk2Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/146967?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":4837,"closed_issues":842,"state":"open","created_at":"2015-01-15T20:46:02Z","updated_at":"2019-09-23T19:30:28Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2019-09-07T00:11:06Z","updated_at":"2019-09-23T19:30:28Z","closed_at":"2019-09-23T19:30:28Z","author_association":"CONTRIBUTOR","body":"**Version Used**: \r\n16.4.intpreview\r\n\r\n**Steps to Reproduce**:\r\nHave code with sufficient amount of constructs that have header and then block. Look at collapsible regions.\r\n\r\n```\r\n        /// <summary>\r\n        /// Use this helper to register multiple refactorings (<paramref name=\"actions\"/>).\r\n        /// </summary>\r\n        internal static void RegisterRefactorings<TCodeAction>(\r\n            this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions)\r\n            where TCodeAction : CodeAction\r\n        {\r\n            if (!actions.IsDefault)\r\n            {\r\n                foreach (var action in actions)\r\n                {\r\n                    context.RegisterRefactoring(action);\r\n                }\r\n            }\r\n        }\r\n````\r\n\r\n![image](https://user-images.githubusercontent.com/1764721/64466836-e70df900-d0c8-11e9-8d71-3543dbf6209b.png)\r\n\r\n\r\n**Expected Behavior**:\r\nOnly the top marked collapsible region is there.\r\n\r\n**Actual Behavior**:\r\nBoth are, the lower one is redundant from UX point of view.\r\n\r\nUseful:\r\n![image](https://user-images.githubusercontent.com/1764721/64466920-47049f80-d0c9-11e9-8eb6-ef52ffee4164.png)\r\n\r\nNot useful:\r\n![image](https://user-images.githubusercontent.com/1764721/64466896-2fc5b200-d0c9-11e9-8e9b-0fdde809c7d1.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/534248979","html_url":"https://github.com/dotnet/roslyn/issues/38567#issuecomment-534248979","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/38567","id":534248979,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNDI0ODk3OQ==","user":{"login":"dibarbet","id":5749229,"node_id":"MDQ6VXNlcjU3NDkyMjk=","avatar_url":"https://avatars0.githubusercontent.com/u/5749229?v=4","gravatar_id":"","url":"https://api.github.com/users/dibarbet","html_url":"https://github.com/dibarbet","followers_url":"https://api.github.com/users/dibarbet/followers","following_url":"https://api.github.com/users/dibarbet/following{/other_user}","gists_url":"https://api.github.com/users/dibarbet/gists{/gist_id}","starred_url":"https://api.github.com/users/dibarbet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dibarbet/subscriptions","organizations_url":"https://api.github.com/users/dibarbet/orgs","repos_url":"https://api.github.com/users/dibarbet/repos","events_url":"https://api.github.com/users/dibarbet/events{/privacy}","received_events_url":"https://api.github.com/users/dibarbet/received_events","type":"User","site_admin":false},"created_at":"2019-09-23T19:30:28Z","updated_at":"2019-09-23T19:30:28Z","author_association":"CONTRIBUTOR","body":"Yep, the duplicate folding ranges was caused by the blue pencil textmate bug.  That was fixed a week or two ago.  I cannot reproduce this in the current dogfooding build.\r\n<img width=\"509\" alt=\"folding_ranges\" src=\"https://user-images.githubusercontent.com/5749229/65456253-c3072300-ddfd-11e9-99f0-34e887f31b83.png\">\r\n\r\nClosing as duplicate of https://github.com/dotnet/roslyn/issues/38559\r\n"}}
{"actor":{"display_login":"dibarbet"}}