Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming interface does not update project files #321

Closed
khusseini opened this issue Jun 30, 2021 · 2 comments
Closed

Renaming interface does not update project files #321

khusseini opened this issue Jun 30, 2021 · 2 comments
Labels
❓ Question A question to be answered

Comments

@khusseini
Copy link

Hello there,
I just installed this extension with the hopes that I can refactor my library with ease.
Unfortunately I found that when I use Abracardabra Rename Symbol in one .ts file, it would only rename the symbol in that file and not update the occurences in any other .ts or .vue files.

Can anyone nudge me in the right direction?

@khusseini khusseini added the ❓ Question A question to be answered label Jun 30, 2021
@nicoespeon
Copy link
Owner

Hey @khusseini 👋

Abracadabra's rename refactoring is the native one from VS Code, except within a .vue file.

Executing it from a .ts file should work fine with other .ts files. For .vue files I'm not so sure. Do you have the same behavior if you use the native rename (F2) instead?

When executing rename from a .vue file, the rename is limited inside the <script> tag indeed. VS Code doesn't support Vue files very well, and we're waiting for Vetur to implement this: vuejs/vetur#610
Abracadabra can provide some help but doesn't work beyond the scope of a single .vue file.

@nicoespeon
Copy link
Owner

Closing the issue since it has been a few weeks. Feel free to open a discussion if you need specific help with this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question A question to be answered
Projects
None yet
Development

No branches or pull requests

2 participants