{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/51970","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/51970/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/51970/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/51970/events","html_url":"https://github.com/Microsoft/vscode/issues/51970","id":332676270,"node_id":"MDU6SXNzdWUzMzI2NzYyNzA=","number":51970,"title":"Renaming a javascript file causes (lots of) unrelated files to be updated","user":{"login":"thomasmichaelwallace","id":1954845,"node_id":"MDQ6VXNlcjE5NTQ4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1954845?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasmichaelwallace","html_url":"https://github.com/thomasmichaelwallace","followers_url":"https://api.github.com/users/thomasmichaelwallace/followers","following_url":"https://api.github.com/users/thomasmichaelwallace/following{/other_user}","gists_url":"https://api.github.com/users/thomasmichaelwallace/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasmichaelwallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasmichaelwallace/subscriptions","organizations_url":"https://api.github.com/users/thomasmichaelwallace/orgs","repos_url":"https://api.github.com/users/thomasmichaelwallace/repos","events_url":"https://api.github.com/users/thomasmichaelwallace/events{/privacy}","received_events_url":"https://api.github.com/users/thomasmichaelwallace/received_events","type":"User","site_admin":false},"labels":[{"id":366106217,"node_id":"MDU6TGFiZWwzNjYxMDYyMTc=","url":"https://api.github.com/repos/Microsoft/vscode/labels/*duplicate","name":"*duplicate","color":"E2A1C2","default":false},{"id":291124272,"node_id":"MDU6TGFiZWwyOTExMjQyNzI=","url":"https://api.github.com/repos/Microsoft/vscode/labels/javascript","name":"javascript","color":"1d76db","default":false},{"id":286886536,"node_id":"MDU6TGFiZWwyODY4ODY1MzY=","url":"https://api.github.com/repos/Microsoft/vscode/labels/upstream","name":"upstream","color":"dcdcdc","default":false}],"state":"closed","locked":false,"assignee":{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-15T07:44:32Z","updated_at":"2018-06-15T17:06:32Z","closed_at":"2018-06-15T16:50:15Z","author_association":"NONE","body":"Issue Type: <b>Bug</b>\r\n\r\nIf a file is renamed in my javascript project almost all files (including those in node_modules) are opened and have their imports changed. The majority of these are unaffected by the rename, and the resulting changes are incorrect.\r\n\r\nFor example:\r\n\r\n```\r\n# /src/.../query.js\r\nimport moment from 'moment';\r\nimport 'moment-timezone';\r\nimport { runQuery } from './adapters/asyncQuery';\r\n```\r\n\r\nbecomes:\r\n\r\n```\r\n# /src/.../query.js\r\nimport moment from '../../../../../Library/Caches/typescript/2.9/node_modules/moment/moment../../../Library/Caches/typescript/2.9/node_modules/moment/moment';\r\nimport '../../../../../Library/Caches/typescript/2.9/node_modules/@types/moment-timezone/indexLibrary/Caches/typescript/2.9/node_modules/@types/moment-timezone/index';\r\nimport { runQuery } from '@/api/adapters/asyncQueryuery';\r\n```\r\n\r\nafter renaming a test file that does not reference/import it at all.\r\n\r\nNote that not only are the imports replaced with references back to the types, but the local import to `asyncQuery` is also changed to `asyncQueryuery`.\r\n\r\nI have confirmed this still happens with `code-insiders --disable-extensions`, so it seems to be part of the build. It started happening yesterday (14th of June).\r\n\r\nVS Code version: Code - Insiders 1.25.0-insider (7dc9539a421c9c33e57e2ce0b718f183bb44c756, 2018-06-15T05:12:05.222Z)\r\nOS version: Darwin x64 17.6.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz (4 x 3100)|\r\n|GPU Status|2d_canvas: enabled<br>checker_imaging: disabled_off<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: enabled<br>rasterization: enabled<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled|\r\n|Load (avg)|3, 2, 3|\r\n|Memory (System)|16.00GB (5.38GB free)|\r\n|Process Argv|/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron -psn_0_229432|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n<!-- generated by issue reporter -->"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/397684511","html_url":"https://github.com/Microsoft/vscode/issues/51970#issuecomment-397684511","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/51970","id":397684511,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzY4NDUxMQ==","user":{"login":"thomasmichaelwallace","id":1954845,"node_id":"MDQ6VXNlcjE5NTQ4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1954845?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasmichaelwallace","html_url":"https://github.com/thomasmichaelwallace","followers_url":"https://api.github.com/users/thomasmichaelwallace/followers","following_url":"https://api.github.com/users/thomasmichaelwallace/following{/other_user}","gists_url":"https://api.github.com/users/thomasmichaelwallace/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasmichaelwallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasmichaelwallace/subscriptions","organizations_url":"https://api.github.com/users/thomasmichaelwallace/orgs","repos_url":"https://api.github.com/users/thomasmichaelwallace/repos","events_url":"https://api.github.com/users/thomasmichaelwallace/events{/privacy}","received_events_url":"https://api.github.com/users/thomasmichaelwallace/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T17:06:32Z","updated_at":"2018-06-15T17:06:32Z","author_association":"NONE","body":"I've updated to `typescript@next` and this is still happening..."}}
{"actor":{"display_login":"thomasmichaelwallace"}}