kcmr / vsce-remove-unused-imports

VS Code extension to remove unused ES6 imports inside JavaScript and TypeScript files
https://marketplace.visualstudio.com/items?itemName=kuscamara.remove-unused-imports
MIT License
17 stars 5 forks source link

Extension removes import even when used in default + ns import #21

Closed Thundercraft5 closed 2 years ago

Thundercraft5 commented 2 years ago

I've noticed that this extension mistakenly removes the default export of event when it is used when it is paired with a NS import.

Example:

import test, * as test$0 from "./test2";

test.test(); // `test` is used

Becomes

import * as test$0 from "./test2";

test.test(); 

EDIT: Cause of this issue is actually another extension.