Open Piedone opened 8 years ago
How is the corresponding using
is handled?
If the appropriate using
for that dependency is not added yet, then maybe it should only allow adding it as a dependency if there's a using
available to be added (and it should be added as well, if there's only one - otherwise should be able to choose it).
Or simply we can just leave the using to the user the injection should happen without caring about the using
.
Currently nothing is done on that matter, but the cursor will be placed on the injected type, so you can simply hit Ctrl + ., Enter to add the declaration afterwards.
The Tools menu is kind of out of sight, we could have a more "natural" way of adding dependencies. Maybe add an interface to the ctor parameters, hit Ctrl + . for a tooltip, then "Add dependency" which would take us to the current injection window with the interface pre-filled?
Jira issue