internal VariableClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer) { _registry = registry; _buffer = buffer; _variableClassification = _registry.GetClassificationType(VariableClassificationType.Name); _tree = CssTreeWatcher.ForBuffer(_buffer); _tree.TreeUpdated += TreeUpdated; _tree.ItemsChanged += TreeItemsChanged; UpdateCache(_tree.StyleSheet); }
internal ImportantClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer) { _registry = registry; _buffer = buffer; _importantClassification = _registry.GetClassificationType(ImportantClassificationType.Name); _tree = CssTreeWatcher.ForBuffer(_buffer); _tree.TreeUpdated += TreeUpdated; _tree.ItemsChanged += TreeItemsChanged; UpdateCache(_tree.StyleSheet); }
internal VendorClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer) { _registry = registry; _buffer = buffer; _decClassification = _registry.GetClassificationType(VendorClassificationTypes.Declaration); _valClassification = _registry.GetClassificationType(VendorClassificationTypes.Value); _tree = CssTreeWatcher.ForBuffer(_buffer); _tree.TreeUpdated += TreeUpdated; _tree.ItemsChanged += TreeItemsChanged; UpdateDeclarationCache(_tree.StyleSheet); }
internal EmbeddedImageClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer) { _registry = registry; _buffer = buffer; _decClassification = _registry.GetClassificationType(EmbeddedImageClassificationTypes.Declaration); _valClassification = _registry.GetClassificationType(EmbeddedImageClassificationTypes.Value); _tree = CssTreeWatcher.ForBuffer(_buffer); _tree.TreeUpdated += TreeUpdated; _tree.ItemsChanged += TreeItemsChanged; UpdateDeclarationCache(_tree.StyleSheet); }