{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/797","labels_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/797/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/797/comments","events_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/797/events","html_url":"https://github.com/fsprojects/VisualFSharpPowerTools/issues/797","id":46707541,"number":797,"title":"[Rename] attribute rename doesn't work","user":{"login":"bleis-tift","id":169348,"avatar_url":"https://avatars.githubusercontent.com/u/169348?v=3","gravatar_id":"","url":"https://api.github.com/users/bleis-tift","html_url":"https://github.com/bleis-tift","followers_url":"https://api.github.com/users/bleis-tift/followers","following_url":"https://api.github.com/users/bleis-tift/following{/other_user}","gists_url":"https://api.github.com/users/bleis-tift/gists{/gist_id}","starred_url":"https://api.github.com/users/bleis-tift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleis-tift/subscriptions","organizations_url":"https://api.github.com/users/bleis-tift/orgs","repos_url":"https://api.github.com/users/bleis-tift/repos","events_url":"https://api.github.com/users/bleis-tift/events{/privacy}","received_events_url":"https://api.github.com/users/bleis-tift/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/labels/minor%20bug","name":"minor bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/milestones/16","html_url":"https://github.com/fsprojects/VisualFSharpPowerTools/milestones/v1.9.0","labels_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/milestones/16/labels","id":1127371,"number":16,"title":"v1.9.0","description":null,"creator":{"login":"dungpa","id":941060,"avatar_url":"https://avatars.githubusercontent.com/u/941060?v=3","gravatar_id":"","url":"https://api.github.com/users/dungpa","html_url":"https://github.com/dungpa","followers_url":"https://api.github.com/users/dungpa/followers","following_url":"https://api.github.com/users/dungpa/following{/other_user}","gists_url":"https://api.github.com/users/dungpa/gists{/gist_id}","starred_url":"https://api.github.com/users/dungpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dungpa/subscriptions","organizations_url":"https://api.github.com/users/dungpa/orgs","repos_url":"https://api.github.com/users/dungpa/repos","events_url":"https://api.github.com/users/dungpa/events{/privacy}","received_events_url":"https://api.github.com/users/dungpa/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":12,"state":"open","created_at":"2015-05-24T11:48:33Z","updated_at":"2015-06-11T21:43:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-10-24T06:12:00Z","updated_at":"2015-06-12T06:52:16Z","closed_at":null,"body":"```fsharp\r\ntype SampleAttribute () =\r\n  inherit System.Attribute()\r\n\r\n[<Sample>]\r\ntype Class () = class end\r\n```\r\n\r\nrename `SampleAttribute` to `SimpleAttribute`:\r\n\r\n```fsharp\r\ntype SimpleAttribute () =\r\n  inherit System.Attribute()\r\n\r\n[<Sample>] // not renamed\r\ntype Class () = class end\r\n```"},"comment":{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/comments/111383095","html_url":"https://github.com/fsprojects/VisualFSharpPowerTools/issues/797#issuecomment-111383095","issue_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/797","id":111383095,"user":{"login":"vasily-kirichenko","id":873919,"avatar_url":"https://avatars.githubusercontent.com/u/873919?v=3","gravatar_id":"","url":"https://api.github.com/users/vasily-kirichenko","html_url":"https://github.com/vasily-kirichenko","followers_url":"https://api.github.com/users/vasily-kirichenko/followers","following_url":"https://api.github.com/users/vasily-kirichenko/following{/other_user}","gists_url":"https://api.github.com/users/vasily-kirichenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vasily-kirichenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasily-kirichenko/subscriptions","organizations_url":"https://api.github.com/users/vasily-kirichenko/orgs","repos_url":"https://api.github.com/users/vasily-kirichenko/repos","events_url":"https://api.github.com/users/vasily-kirichenko/events{/privacy}","received_events_url":"https://api.github.com/users/vasily-kirichenko/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T06:52:16Z","updated_at":"2015-06-12T06:52:16Z","body":"Before\r\n```fsharp\r\ntype SampleAttribute () =\r\n  inherit System.Attribute()\r\n\r\n[<Sample>]\r\ntype Class () = class end\r\n\r\nlet _ = SampleAttribute()\r\n```\r\n1. Cursor at attribute definition (`SampleAttribute` -> `Sample1Attribute`)\r\n```fsharp\r\ntype Sample1Attribute () =\r\n  inherit System.Attribute()\r\n\r\n[<Sample1Attribute>]  // wrongly added \"Attribute\" suffix\r\ntype Class () = class end\r\n\r\nlet _ = Sample1Attribute()\r\n```\r\n2. Cursor at attribute applying (`Sample` -> `Sample1`)\r\n```fsharp\r\ntype Sample1 () = // the suffix is removed\r\n  inherit System.Attribute()\r\n\r\n[<Sample1>]\r\ntype Class () = class end\r\n\r\nlet _ = Sample1() // the suffix is removed\r\n```\r\n3. Cursor at attribute creation, like a normal class (`SampleAttribute` -> `Sample1Attribute`)\r\n```fsharp\r\n\r\ntype Sample1Attribute () =\r\n  inherit System.Attribute()\r\n\r\n[<Sample1Attribute>] // the suffix added\r\ntype Class () = class end\r\n\r\nlet _ = Sample1Attribute()\r\n```"}}