public static async Task InitializeAsync(AsyncPackage package) { var(commandService, vsTextManager, editor, eventAggregator) = await GetServicesAsync(package); Instance = new CocoJumperWordSearchCommand(package, commandService, vsTextManager, editor, eventAggregator); }
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); MefProvider.ComponentModel = await GetServiceAsync(typeof(SComponentModel)) as IComponentModel; await CocoJumperMultiSearchCommand.InitializeAsync(this); await CocoJumperSingleSearchCommand.InitializeAsync(this); await CocoJumperSingleSearchHighlightCommand.InitializeAsync(this); await CocoJumperWordSearchCommand.InitializeAsync(this); await base.InitializeAsync(cancellationToken, progress); }