コード例 #1
0
        public static async Task InitializeAsync(AsyncPackage package)
        {
            var(commandService, vsTextManager, editor, eventAggregator) = await GetServicesAsync(package);

            Instance = new CocoJumperMultiSearchCommand(package, commandService,
                                                        vsTextManager, editor, eventAggregator);
        }
コード例 #2
0
        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);
        }