Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Auto imports for JS and TS completions #37177

Closed
3 tasks done
mjbvz opened this issue Oct 30, 2017 · 0 comments
Closed
3 tasks done

Test: Auto imports for JS and TS completions #37177

mjbvz opened this issue Oct 30, 2017 · 0 comments

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 30, 2017

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants