[Ide] Fix issue with commands in the target selector combo

If a command is not visible, don't add it to the target selector combo.