PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

Unregistering a Command does not remove it from the Additional Commands dropdown.

Open gerane opened this issue 8 years ago • 1 comments

When you Unregister and Editor Command, it does not remove it from the list. If you try to run the command, nothing happens. This could be confusing to users.

I believe it requires a reload, but this is problematic when testing new commands or only wanting to load certain commands from a module. If you have Commands autoloaded from your profile or loaded from modules, unregistering the command is not going to work for Removing unwanted commands. Every time you import the module (which may be required for the testing you are doing for example) the Commands are autoloaded right back in.

gerane avatar Jun 10 '16 14:06 gerane

Yep, I think this is just a bug, thanks!

daviwil avatar Jun 10 '16 14:06 daviwil