You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As this is a question, this should go on Stack Overflow at the link provided in the issue template so I'm closing this.
But to quickly answer the question, the answer is there isn't a current way but #636 would implement this if/when we merge that PR (this is also a duplicate of #21 ).
Brett Cannon (@brettcannon) Looks like this feature is already available for TypeScript: microsoft/vscode#21764
Could you please rename this issue into a feature request and reopen? I can create a separate issue if that's the preferred way to track it.
Please note that "Auto import" or "Optimize imports" (using isort, for example) is not a substitution for this feature because there could be ambiguous imports, and only developer knows which one is best, thus a quickfix action functionality is necessary.
Yuri Bochkarev (@balta2ar) if we implement this it will be through a quickfix/lightbulb anyway and not a magical "insert without asking" type of solution.
Activity
brettcannon commentedon Mar 2, 2018
As this is a question, this should go on Stack Overflow at the link provided in the issue template so I'm closing this.
But to quickly answer the question, the answer is there isn't a current way but #636 would implement this if/when we merge that PR (this is also a duplicate of #21 ).
balta2ar commentedon May 15, 2018
Brett Cannon (@brettcannon) Looks like this feature is already available for TypeScript: microsoft/vscode#21764
Could you please rename this issue into a feature request and reopen? I can create a separate issue if that's the preferred way to track it.
Please note that "Auto import" or "Optimize imports" (using isort, for example) is not a substitution for this feature because there could be ambiguous imports, and only developer knows which one is best, thus a quickfix action functionality is necessary.
brettcannon commentedon May 15, 2018
Yuri Bochkarev (@balta2ar) if we implement this it will be through a quickfix/lightbulb anyway and not a magical "insert without asking" type of solution.
balta2ar commentedon May 15, 2018
Brett Cannon (@brettcannon) Sure! This is exactly what I meant, some kind of a menu with possible import alternatives should be displayed to the user.