language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

🐛 BUG: Other projects prompt astro refactoring

Open recallwei opened this issue 2 years ago • 2 comments

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

  1. enable astro VSCode extension
  2. open a React or Vue project
  3. try to change the location of the component which imported into the page
  4. the Astro extension prompt that should you refactor.

recallwei avatar Oct 13 '23 13:10 recallwei

First: Astro Extension wants to refactor changes by moving this file image Then: Whether to update the import of footer.tsx image Even though I'm not working on the Astro project. I had to check twice.

recallwei avatar Oct 31 '23 02:10 recallwei

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)

Princesseuh avatar Nov 13 '23 11:11 Princesseuh

This should be fixed now, the VS Code extension no longer handle imports renaming by default, leaving it to the TypeScript plugin.

Princesseuh avatar Oct 07 '24 14:10 Princesseuh