Exemplo n.º 1
0
        public ColorSchemeApplier(
            IThreadingContext threadingContext,
            VisualStudioWorkspace visualStudioWorkspace,
            [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
            : base(threadingContext)
        {
            _serviceProvider = serviceProvider;

            _settings       = new ColorSchemeSettings(_serviceProvider, visualStudioWorkspace);
            _colorSchemes   = _settings.GetColorSchemes();
            _colorDefaulter = new ForegroundColorDefaulter(threadingContext, serviceProvider, _settings, _colorSchemes);

            _colorSchemeRegistryItems = new AsyncLazy <ImmutableDictionary <SchemeName, ImmutableArray <RegistryItem> > >(GetColorSchemeRegistryItemsAsync, cacheResult: true);
        }
Exemplo n.º 2
0
        public ColorSchemeApplier(
            IThreadingContext threadingContext,
            IGlobalOptionService globalOptions,
            [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
            : base(threadingContext)
        {
            _serviceProvider = serviceProvider;

            _settings               = new ColorSchemeSettings(_serviceProvider, globalOptions);
            _colorSchemes           = _settings.GetColorSchemes();
            _classificationVerifier = new ClassificationVerifier(threadingContext, serviceProvider, _colorSchemes);

            _colorSchemeRegistryItems = new AsyncLazy <ImmutableDictionary <SchemeName, ImmutableArray <RegistryItem> > >(GetColorSchemeRegistryItemsAsync, cacheResult: true);
        }