{"action":"created","issue":{"url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/221","repository_url":"https://api.github.com/repos/JosefPihrt/Roslynator","labels_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/221/comments","events_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/221/events","html_url":"https://github.com/JosefPihrt/Roslynator/issues/221","id":280098160,"number":221,"title":"Proposal: Extract method to new class","user":{"login":"Zyxious","id":15867612,"avatar_url":"https://avatars1.githubusercontent.com/u/15867612?v=4","gravatar_id":"","url":"https://api.github.com/users/Zyxious","html_url":"https://github.com/Zyxious","followers_url":"https://api.github.com/users/Zyxious/followers","following_url":"https://api.github.com/users/Zyxious/following{/other_user}","gists_url":"https://api.github.com/users/Zyxious/gists{/gist_id}","starred_url":"https://api.github.com/users/Zyxious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zyxious/subscriptions","organizations_url":"https://api.github.com/users/Zyxious/orgs","repos_url":"https://api.github.com/users/Zyxious/repos","events_url":"https://api.github.com/users/Zyxious/events{/privacy}","received_events_url":"https://api.github.com/users/Zyxious/received_events","type":"User","site_admin":false},"labels":[{"id":711300406,"url":"https://api.github.com/repos/JosefPihrt/Roslynator/labels/Area-Refactorings","name":"Area-Refactorings","color":"0000CD","default":false},{"id":423521410,"url":"https://api.github.com/repos/JosefPihrt/Roslynator/labels/Feature%20Request","name":"Feature Request","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T11:38:20Z","updated_at":"2018-03-22T01:33:35Z","closed_at":null,"author_association":"NONE","body":"I want to take a existing method in a class and move this to a new class. This is useful while doing refactoring.\r\n\r\nBy placing the cursor on a method, I would  like to get a choice like:\r\n'Move method to new class'\r\n\r\nThis would for example move the method to a new class in the same file and let me edit the class name. After that I can use a existing refactoring to move the class to a new file. \r\n\r\nAlternatively we could have another choice like:\r\n'Move method to new file and class'\r\n\r\nThis would move the method to a new class in a new file. Maybe there is a little bit of problem naming the file since the class name is not defined.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/comments/375149434","html_url":"https://github.com/JosefPihrt/Roslynator/issues/221#issuecomment-375149434","issue_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/221","id":375149434,"user":{"login":"wmjordan","id":12182730,"avatar_url":"https://avatars1.githubusercontent.com/u/12182730?v=4","gravatar_id":"","url":"https://api.github.com/users/wmjordan","html_url":"https://github.com/wmjordan","followers_url":"https://api.github.com/users/wmjordan/followers","following_url":"https://api.github.com/users/wmjordan/following{/other_user}","gists_url":"https://api.github.com/users/wmjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/wmjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmjordan/subscriptions","organizations_url":"https://api.github.com/users/wmjordan/orgs","repos_url":"https://api.github.com/users/wmjordan/repos","events_url":"https://api.github.com/users/wmjordan/events{/privacy}","received_events_url":"https://api.github.com/users/wmjordan/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T01:33:35Z","updated_at":"2018-03-22T01:33:35Z","author_association":"NONE","body":"I vote for this request.\r\nWhile I was reviewing the code written by my team member, I sometimes gave them suggestions to move some methods to a separated class, for the reason that a class should be kept as simple as doing one thing.\r\nI myself occasionally did such type of refactoring as well."}}
{"actor":{"display_login":"wmjordan"}}