Skip to content

Test: Auto imports for JS and TS completions #37177

@mjbvz

Description

@mjbvz

Complexity: 2

OS

Overview
TypeScript 2.6 will now show exported members for other files in the completion list, even if these files are currently not imported. Selecting one of these suggestions will automatically add the import to your file

Testing

  1. Create a new javascript project with a simple jsconfig.json
  2. Create a few files that define some exports
  3. In separate files, try triggering suggestions for these exported symbols.
  4. Make sure the imports are added as expected

Other cases to try

  • Try this in a larger codebase, such as vscode (make sure you are using VS Code's version of TS)
  • Make sure this work even if there are multiple exported symbols with the same name
  • Test with typescript code on a tsconfig.json project

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions