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

* Add `removeUnusedImports` command

* Continue to send `skipDestructiveCodeActions` for older TS versions

* Expose Sort Imports and Remove Unused Imports commands

* Update localization keys

* Update for 4.9 protocol

* Proto must be type only import?
This commit is contained in:
Andrew Branch
2022-10-18 09:00:16 -07:00
committed by GitHub
parent 4d183bd274
commit 1fb956d2f5
6 changed files with 145 additions and 24 deletions

View File

@@ -187,7 +187,9 @@
"codeActions.refactor.rewrite.parameters.toDestructured.title": "Convert parameters to destructured object",
"codeActions.refactor.rewrite.property.generateAccessors.title": "Generate accessors",
"codeActions.refactor.rewrite.property.generateAccessors.description": "Generate 'get' and 'set' accessors",
"codeActions.source.organizeImports.title": "Organize imports",
"codeActions.source.organizeImports.title": "Organize Imports",
"typescript.sortImports": "Sort Imports",
"typescript.removeUnusedImports": "Remove Unused Imports",
"typescript.findAllFileReferences": "Find File References",
"typescript.goToSourceDefinition": "Go to Source Definition",
"configuration.suggest.classMemberSnippets.enabled": "Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace",