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

Do not auto import relative paths ever #46194

Closed
isidorn opened this issue Mar 20, 2018 · 1 comment
Closed

Do not auto import relative paths ever #46194

isidorn opened this issue Mar 20, 2018 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues

Comments

@isidorn
Copy link
Contributor

isidorn commented Mar 20, 2018

Please do not auto import relative paths ever, this is constantly in the way of my productivity.

Steps to repro:

  1. Accept as a suggestion an unimported class in a Typescript file
  2. The class is automatically imported as accepted, however the import is relative

This is easily reproducible anywhere in vscode.

p.s if I trigger a quick fix to import I am presented both options to import as relative or absolute. Which I guess is fine, but on suggest accept we should import in the style that most imports in the file are.

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug typescript Typescript support issues labels Mar 20, 2018
@mjbvz
Copy link
Contributor

mjbvz commented Mar 20, 2018

Duplicate of #43575

@mjbvz mjbvz marked this as a duplicate of #43575 Mar 20, 2018
@mjbvz mjbvz closed this as completed Mar 20, 2018
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 20, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants