Renaming a javascript file causes (lots of) unrelated files to be updated #51970
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Issue Type: Bug
If 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.
For example:
becomes:
after renaming a test file that does not reference/import it at all.
Note that not only are the imports replaced with references back to the types, but the local import to
asyncQuery
is also changed toasyncQueryuery
.I 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).VS Code version: Code - Insiders 1.25.0-insider (7dc9539, 2018-06-15T05:12:05.222Z)
OS version: Darwin x64 17.6.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: