public IClassificationFormatMap GetClassificationFormatMap(string category)
        {
            if (category == null)
            {
                throw new ArgumentNullException(nameof(category));
            }
            var editorFormatMap = editorFormatMapService.GetEditorFormatMap(category);

            if (toCategoryMap.TryGetValue(editorFormatMap, out var map))
            {
                return(map);
            }
            map = new CategoryClassificationFormatMap(themeService, editorFormatMap, editorFormatDefinitionService, classificationTypeRegistryService);
            toCategoryMap.Add(editorFormatMap, map);
            return(map);
        }
Exemplo n.º 2
0
 public ClassificationTypeComparer(CategoryClassificationFormatMap owner) => this.owner = owner;