public ColorSchemeApplier( IThreadingContext threadingContext, VisualStudioWorkspace visualStudioWorkspace, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider) : base(threadingContext) { _serviceProvider = serviceProvider; _settings = new ColorSchemeSettings(_serviceProvider, visualStudioWorkspace); _colorSchemes = _settings.GetColorSchemes(); _classificationVerifier = new ClassificationVerifier(threadingContext, serviceProvider, _colorSchemes); _colorSchemeRegistryItems = new AsyncLazy <ImmutableDictionary <SchemeName, ImmutableArray <RegistryItem> > >(GetColorSchemeRegistryItemsAsync, cacheResult: true); }
public ColorSchemeApplier( IThreadingContext threadingContext, IGlobalOptionService globalOptions, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider) : base(threadingContext) { _serviceProvider = serviceProvider; _settings = new ColorSchemeSettings(_serviceProvider, globalOptions); _colorSchemes = ColorSchemeSettings.GetColorSchemes(); _classificationVerifier = new ClassificationVerifier(threadingContext, serviceProvider, _colorSchemes); _colorSchemeRegistryItems = new AsyncLazy <ImmutableDictionary <ColorSchemeName, ImmutableArray <RegistryItem> > >(this.GetColorSchemeRegistryItemsAsync, cacheResult: true); }