Lombiq / Lombiq-Orchard-Visual-Studio-Extension

Visual Studio extension to help our work at Lombiq (https://lombiq.com/), mainly with Orchard Core (and Orchard CMS) development.
13 stars 7 forks source link

More direct way of adding dependencies (VSIX-50) #1

Open Piedone opened 8 years ago

Piedone commented 8 years ago

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

BenedekFarkas commented 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.

Piedone commented 8 years ago

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.