Renaming a file does not update imports #3646
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Repo: https://github.com/andraaspar/vue-lang-tools-rename-issue
VS Code 1.83.0
The only extensions installed are:
I have created a new project using
yarn create vue
and answeredYes
only toTypeScript
.I have the following 3 files:
renameMe.ts
ThenCheckMe.vue
thenCheckMeToo.ts
I right click
renameMe.ts
and selectRename...
, and make itrenameMe2.ts
.If TypeScript and JavaScript Language Features is enabled
ThenCheckMe.vue
becomes:❌ Note the import did not change, but the new file name was appended to the final line.
thenCheckMeToo.ts
becomes:✅ This is correct.
If TypeScript and JavaScript Language Features is disabled (takeover mode)
ThenCheckMe.vue
becomes:❌ Note the import did not change.
thenCheckMeToo.ts
becomes:❌ Note the import did not change.
The text was updated successfully, but these errors were encountered: