void CreateExplicitTextProperties(ClassificationInfo info) { var props = info.Lazy.Value.CreateThemeResourceDictionary(themeService.Theme); info.ExplicitResourceDictionary = props; info.ExplicitTextProperties = ClassificationFontUtils.Create(info.ExplicitResourceDictionary); }
void CreateInheritedTextProperties(ClassificationInfo info) { var list = new List <IClassificationType>(); AddBaseTypes(list, info.ClassificationType); info.InheritedResourceDictionary = CreateInheritedResourceDictionary(defaultResourceDictionary, list); info.InheritedTextProperties = ClassificationFontUtils.Create(info.InheritedResourceDictionary); }
void ReinitializeCache() { toClassificationInfo.Clear(); ClassificationFontUtils.CopyTo(defaultResourceDictionary, editorFormatMap.GetProperties(EditorFormatMapConstants.PlainText)); defaultTextFormattingRunProperties = ClassificationFontUtils.Create(defaultResourceDictionary); }