Skip to content

Test organize imports #46589

@mjbvz

Description

@mjbvz

Complexity: 2

Overview

The new organize imports command for JS and TS removes unused imports and sorts the remaining imports. It can be triggered using a command or with alt+shift+o

Testing

  • Try using organize imports in the vscode codebase
    • Try introducing some unused imports and verifying that these are removed
  • Try using organize imports a create react app javascript project
  • Try using organize imports in an angular typescript project

Important Note

I've already reported a few import bugs around organize imports to TS such as microsoft/TypeScript#22731. If you find a bug, please install typescript@next in your workspace and check if the bug still repos using the latest typescript version. Many of important organize imports bugs have already been fixed upstream but unfortunately there is nothing we can do on the VS Code side for them at the moment @

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions