
We're currently running v21 and we're currently evaluating v25.1. After upgrading, the colors in vssettings file aren't applied.
//calling this after creating the language and registering all the services
using Stream stream = File.Open(path, FileMode.Open);
AmbientHighlightingStyleRegistry.Instance.ImportHighlightingStyles(stream);
public IClassificationType Comment
{
get
{
if ((this.commentValue == null))
{
String key = "Comment";
this.commentValue = this.registryValue.GetClassificationType(key);
if ((this.commentValue == null))
{
this.commentValue = new ClassificationType(key, "Comment");
this.registryValue.Register(this.commentValue, new HighlightingStyle(Color.FromArgb(255, 71, 156, 70)));
}
}
return this.commentValue;
}
}
Even trying to overwrite colors have no effect:
var registry = AmbientHighlightingStyleRegistry.Instance;
var ct = registry.GetClassificationType("Comment");
if (ct != null) {
var style = new HighlightingStyle(
Colors.LimeGreen,
null, null, null,
ActiproSoftware.Windows.Controls.Rendering.LineKind.None
);
registry.Register(ct, style, overwriteExisting: true);
}
I guess somewhere has been a breaking change?