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
Instead source.addMissingImports is designed to only add imports it is confident in
In that case, isn't it weird that the auto-importer would always choose the first when there are multiple import options? That's what feels like the bug to me -- in the case where there's ambiguous imports, I would rather vscode import none of the options than the current behavior of choosing the wrong one.
Does this issue occur when all extensions are disabled?: Yes
(I think this is a bug as I remember this behavior existing in the past...but I could be wrong and it's a feature request)
Steps to Reproduce:
settings.json
Where
ID
hasn't been imported. Make sure you have a local file with an export likeand also some dependency like
aws-sdk
which also exportsID
.Expected:
The auto-import action detects multiple options for
ID
and prompts the user to select which value to import, similar to the tooltip prompt:It would do this once for each ambiguous import.
Actual:
The auto-import action imports the first possible match, which often is not the desired import.
The text was updated successfully, but these errors were encountered: