You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a component, I noticed that while all the necessary elements were successfully copied into the new file, the accompanying variables and imports were not removed in the original file where. As a result, I had to manually remove these unused variables and imports, which added extra time to my workflow. I would appreciate it if this issue could be addressed so that the component creation process is streamlined and more efficient.
Reproduction
Select the HTML code that you want to convert into a component.
Right-click and choose "Svelte: Extract Component" from the menu.
Give a name to the newly created component.
Observe that there are still unused variables and imports in the script tag of the original file.
Expected behaviour
Variables and imports that are moved into new file should me removed from original file.
System Info
OS: Linux (Zorin OS)
IDE: VSCode 1.75
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to create a component, I noticed that while all the necessary elements were successfully copied into the new file, the accompanying variables and imports were not removed in the original file where. As a result, I had to manually remove these unused variables and imports, which added extra time to my workflow. I would appreciate it if this issue could be addressed so that the component creation process is streamlined and more efficient.
Reproduction
Expected behaviour
Variables and imports that are moved into new file should me removed from original file.
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: