/// <summary> /// Initializes a new instance of the <see cref="JsGoogleCompile"/> class. /// Adds our command handlers for menu (commands must exist in the command table file) /// </summary> /// <param name="package">Owner package, not null.</param> private JsGoogleCompile(Package package) { Guard.ArgumentNotNull(() => package, package); if (errorListHelper == null) { errorListHelper = new ErrorListHelper(); } this.package = package; OleMenuCommandService commandService = this.ServiceProvider.GetService( typeof(IMenuCommandService)) as OleMenuCommandService; if (commandService != null) { AddCommandMenuItem(commandService, IdeActiveDocContextMenuCommandId); AddCommandMenuItem(commandService, ProjectFileContextMenuCommandId); } }
public ResultsWriter(ErrorListHelper errorListHelper) { Guard.ArgumentNotNull(() => errorListHelper, errorListHelper); this.errorListHelper = errorListHelper; }