Skip to content

[typescript-language-features] Add removeUnusedImports command#161654

Merged
mjbvz merged 10 commits into
microsoft:mainfrom
andrewbranch:remove-unused-imports
Oct 18, 2022
Merged

[typescript-language-features] Add removeUnusedImports command#161654
mjbvz merged 10 commits into
microsoft:mainfrom
andrewbranch:remove-unused-imports

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

TS counterpart: microsoft/TypeScript#50931

@mjbvz mjbvz added this to the September 2022 milestone Sep 26, 2022
@andrewbranch

Copy link
Copy Markdown
Member Author

Let’s wait for microsoft/TypeScript#50931 in case there are any changes requested from the TypeScript side.

Comment thread extensions/typescript-language-features/src/languageFeatures/organizeImports.ts Outdated
@andrewbranch
andrewbranch requested a review from mjbvz September 30, 2022 16:48
@andrewbranch

Copy link
Copy Markdown
Member Author

@mjbvz I did quite a bit of reorganization to expose new command palette entries while reusing some of the code that already existed for the code actions on save. I tried it out and it seems to work, but I have a few questions I’ll leave inline, and let me know if you see anything that looks off. Thanks!

Comment thread extensions/typescript-language-features/package.json
Comment thread extensions/typescript-language-features/package.json
Comment thread extensions/typescript-language-features/src/languageFeatures/organizeImports.ts Outdated

@mjbvz mjbvz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor feedback but otherwise looking good!

Comment thread extensions/typescript-language-features/package.json
Comment thread extensions/typescript-language-features/package.json
Comment thread extensions/typescript-language-features/src/languageFeatures/organizeImports.ts Outdated
@andrewbranch
andrewbranch requested a review from mjbvz October 13, 2022 21:27
@mjbvz

mjbvz commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

@andrewbranch Looks like the compile is failing. Can you take a look?

@mjbvz mjbvz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mjbvz
mjbvz merged commit 1fb956d into microsoft:main Oct 18, 2022
@andrewbranch
andrewbranch deleted the remove-unused-imports branch October 18, 2022 16:08
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants