public FindResultsClassfierProvider(
            IServiceProvider serviceProvider,
            IClassificationFormatMapService classificationFormatMapService,
            IClassificationTypeRegistryService classificationTypeRegistryService
            )
        {
            this.SettingsService = VscServices.Instance.Container.Resolve<IVscSettingsService>();
            this.VisualStudioEventsService = VscServices.Instance.Container.Resolve<IVisualStudioEventsService>();

            this.ClassificationFormatMapService = classificationFormatMapService;
            this.ClassificationTypeRegistryService = classificationTypeRegistryService;

            var fontAndColorStorageService = serviceProvider.GetService(typeof(SVsFontAndColorStorage)) as IVsFontAndColorStorage;

            Classifier = new FindResultsClassifier(
                SettingsService,
                VisualStudioEventsService,
                ClassificationTypeRegistryService,
                ClassificationFormatMapService,
                fontAndColorStorageService,
                serviceProvider.GetDte2());
        }
Esempio n. 2
0
        public FindResultsClassfierProvider(
            IServiceProvider serviceProvider,
            IClassificationFormatMapService classificationFormatMapService,
            IClassificationTypeRegistryService classificationTypeRegistryService
            )
        {
            this.SettingsService           = VscServices.Instance.Container.Resolve <IVscSettingsService>();
            this.VisualStudioEventsService = VscServices.Instance.Container.Resolve <IVisualStudioEventsService>();

            this.ClassificationFormatMapService    = classificationFormatMapService;
            this.ClassificationTypeRegistryService = classificationTypeRegistryService;

            var fontAndColorStorageService = serviceProvider.GetService(typeof(SVsFontAndColorStorage)) as IVsFontAndColorStorage;

            Classifier = new FindResultsClassifier(
                SettingsService,
                VisualStudioEventsService,
                ClassificationTypeRegistryService,
                ClassificationFormatMapService,
                fontAndColorStorageService,
                serviceProvider.GetDte2());
        }