{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8526","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8526/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8526/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8526/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8526","id":153749391,"number":8526,"title":"Refactoring (rename symbol) is broken in certain cases","user":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars2.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-09T10:44:06Z","updated_at":"2017-04-19T17:34:50Z","closed_at":"2016-06-07T17:58:36Z","body":"_From @DavidRigglemanININ on April 30, 2016 23:47_\n- VSCode Version: 1.0.0\n- OS Version: OS X Yosemite\n- Language: TypeScript\n\nSteps to Reproduce:\n1. Paste the following code snippet into VS Code\n\n```\nexport class Test {\n    private static _meta = {\n        foo: \"string\"\n    };\n\n    private p = Test._meta;\n\n    private static test(me: Test) {\n        var myTestVar = me.p.foo;\n    }\n}\n```\n1. Right click on foo on line 3 and select rename symbol\n2. Change \"foo\" to \"fooNew\" and press enter\n3. Expected: me.p.foo should be updated to me.p.fooNew\n4. Actual: rename does not work leaving broken code that does not build\n\nIt may be worth mentioning that this code snippet is just a trivial example to highlight the problem. So in case you are wondering why anyone would want to do this, we do have a valid use case that's just too complex to put here. Also, Visual Studio handles the refactoring just fine.\n\n_Copied from original issue: Microsoft/vscode#6021_\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/295358845","html_url":"https://github.com/Microsoft/TypeScript/issues/8526#issuecomment-295358845","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8526","id":295358845,"user":{"login":"churtado","id":431618,"avatar_url":"https://avatars3.githubusercontent.com/u/431618?v=3","gravatar_id":"","url":"https://api.github.com/users/churtado","html_url":"https://github.com/churtado","followers_url":"https://api.github.com/users/churtado/followers","following_url":"https://api.github.com/users/churtado/following{/other_user}","gists_url":"https://api.github.com/users/churtado/gists{/gist_id}","starred_url":"https://api.github.com/users/churtado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/churtado/subscriptions","organizations_url":"https://api.github.com/users/churtado/orgs","repos_url":"https://api.github.com/users/churtado/repos","events_url":"https://api.github.com/users/churtado/events{/privacy}","received_events_url":"https://api.github.com/users/churtado/received_events","type":"User","site_admin":false},"created_at":"2017-04-19T17:34:50Z","updated_at":"2017-04-19T17:34:50Z","body":"I'm having the exact same issue.\r\n\r\n- VSCode Version: Code 1.11.2 (6eaebe3b9c70406d67c97779468c324a7a95db0e, 2017-04-13T08:03:11.395Z)\r\n- OS Version: Windows_NT ia32 10.0.14393\r\n- Extensions: none\r\n---"}}
{"actor":{"display_login":"churtado"}}