🐛 BUG: Other projects prompt astro refactoring
Describe the Bug
When I work on other projects, even non-Astro projects, the Astro plugin will prompt for refactoring. Can I disable this behavior or prompt for refactoring only when the project contains astro dependencies?
Steps to Reproduce
- enable astro VSCode extension
- open a React or Vue project
- try to change the location of the component which imported into the page
- the Astro extension prompt that should you refactor.
First:
Astro Extension wants to refactor changes by moving this file
Then:
Whether to update the import of
footer.tsx
Even though I'm not working on the Astro project.
I had to check twice.
Hmm, this is most likely coming from our TypeScript plugin being always enabled, I'd assume. Not too sure if it's because of a misconfiguration, or if we should just disable the plugin when it's not an Astro project (which, in the past, when we used to do that, caused a lot of issues)
This should be fixed now, the VS Code extension no longer handle imports renaming by default, leaving it to the TypeScript plugin.