{"action":"created","issue":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/223","repository_url":"https://api.github.com/repos/OmniSharp/omnisharp-server","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/223/comments","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/223/events","html_url":"https://github.com/OmniSharp/omnisharp-server/issues/223","id":196000362,"number":223,"title":"Refactor create property","user":{"login":"jamlen","id":3593671,"avatar_url":"https://avatars.githubusercontent.com/u/3593671?v=3","gravatar_id":"","url":"https://api.github.com/users/jamlen","html_url":"https://github.com/jamlen","followers_url":"https://api.github.com/users/jamlen/followers","following_url":"https://api.github.com/users/jamlen/following{/other_user}","gists_url":"https://api.github.com/users/jamlen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamlen/subscriptions","organizations_url":"https://api.github.com/users/jamlen/orgs","repos_url":"https://api.github.com/users/jamlen/repos","events_url":"https://api.github.com/users/jamlen/events{/privacy}","received_events_url":"https://api.github.com/users/jamlen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T07:53:25Z","updated_at":"2016-12-16T11:00:53Z","closed_at":null,"body":"I'm on day one of using OmniSharp but once I got it running in Spacemacs (via [omnisharp-emacs](https://github.com/OmniSharp/omnisharp-emacs)), the result of a refactor (`omnisharp-run-code-action-refactoring`) was not what I was expecting.\r\n\r\nGiven this:\r\n\r\n```cs\r\npublic class MyType\r\n{\r\n  public string Name { get; set; }\r\n}\r\n\r\nvar a = new MyType\r\n  {\r\n    Name = \"Talula\",\r\n    NewField = 1234  // <- Refactor create property\r\n  };\r\n```\r\n\r\nI was expecting:\r\n\r\n```cs\r\npublic class MyType\r\n{\r\n  public string Name { get; set; }\r\n  int NewField { get; set; }\r\n}\r\n\r\n\r\nvar a = new MyType\r\n  {\r\n    Name = \"Talula\",\r\n    NewField = 1234\r\n  };\r\n```\r\n\r\nBut what I got was:\r\n\r\n```cs\r\npublic class MyType\r\n{\r\n  public string Name { get; set; }\r\n}\r\n\r\nint NewField\r\n{\r\n  get; \r\n  set;\r\n}\r\n\r\nvar a = new MyType\r\n  {\r\n    Name = \"Talula\",\r\n    NewField = 1234\r\n  };\r\n```"},"comment":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/comments/267570240","html_url":"https://github.com/OmniSharp/omnisharp-server/issues/223#issuecomment-267570240","issue_url":"https://api.github.com/repos/OmniSharp/omnisharp-server/issues/223","id":267570240,"user":{"login":"nosami","id":667194,"avatar_url":"https://avatars.githubusercontent.com/u/667194?v=3","gravatar_id":"","url":"https://api.github.com/users/nosami","html_url":"https://github.com/nosami","followers_url":"https://api.github.com/users/nosami/followers","following_url":"https://api.github.com/users/nosami/following{/other_user}","gists_url":"https://api.github.com/users/nosami/gists{/gist_id}","starred_url":"https://api.github.com/users/nosami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosami/subscriptions","organizations_url":"https://api.github.com/users/nosami/orgs","repos_url":"https://api.github.com/users/nosami/repos","events_url":"https://api.github.com/users/nosami/events{/privacy}","received_events_url":"https://api.github.com/users/nosami/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T11:00:53Z","updated_at":"2016-12-16T11:00:53Z","body":"Think you are using omnisharp-server backend here based on NRefactory. There is a newer backend (omnisharp-roslyn) but I don't think omnisharp-emacs supports it. Most of the omnisharp-roslyn backend will work with master omnisharp-emacs (with the exception of refactorings!! - the API changed)\r\n\r\nThere is a branch here https://github.com/OmniSharp/omnisharp-emacs/tree/feature-omnisharp-roslyn-support but I don't think it was ever finished. Not sure what state this branch is in.\r\n\r\nIf that doesn't work for you, you're probably SOL unless you want to get your hands dirty. The omnisharp-emacs author (@sp3ctum) doesn't work on the project any more."}}
{"actor":{"display_login":"nosami"}}