private OpenVsCodeCommand(Package package, Options options) { _package = package; _options = options; var commandService = (OleMenuCommandService)ServiceProvider.GetService(typeof(IMenuCommandService)); if (commandService != null) { var menuCommandID = new CommandID(PackageGuids.guidOpenInVsCmdSet, PackageIds.OpenInVs); var menuItem = new MenuCommand(OpenFolderInVs, menuCommandID); commandService.AddCommand(menuItem); } }
public static void Initialize(Package package, Options options) { Instance = new OpenVsCodeCommand(package, options); }