protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await Logger.InitializeAsync(this, Vsix.Name); await RemoveNonMatchesCommand.Initialize(this); _options = (Options)this.GetDialogPage(typeof(Options)); }
public static async System.Threading.Tasks.Task Initialize(AsyncPackage package) { var commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; var dte = await package.GetServiceAsync(typeof(DTE)) as DTE2; Instance = new RemoveNonMatchesCommand(commandService, dte); }