Browse Source

small bug fix in XamlColorizer

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4878 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Siegfried Pammer 16 years ago
parent
commit
5eedcede92
  1. 7
      src/AddIns/BackendBindings/XamlBinding/XamlBinding/XamlColorizer.cs

7
src/AddIns/BackendBindings/XamlBinding/XamlBinding/XamlColorizer.cs

@ -270,6 +270,10 @@ namespace ICSharpCode.XamlBinding @@ -270,6 +270,10 @@ namespace ICSharpCode.XamlBinding
void ColorizeInvalidated()
{
foreach (var item in highlightCache.ToArray()) {
if (item.Key.IsDeleted) {
highlightCache.Remove(item.Key);
continue;
}
if (item.Value.Invalid) {
var newTask = new HighlightTask(this.Editor, item.Key, this.TextView, item.Value.GetResults());
newTask.Start();
@ -288,7 +292,6 @@ namespace ICSharpCode.XamlBinding @@ -288,7 +292,6 @@ namespace ICSharpCode.XamlBinding
current = current.NextLine;
}
Core.LoggingService.Debug("invalidated lines");
}
#region highlight helpers
@ -317,6 +320,7 @@ namespace ICSharpCode.XamlBinding @@ -317,6 +320,7 @@ namespace ICSharpCode.XamlBinding
}
#endregion
#region ILineTracker implementation
public void BeforeRemoveLine(DocumentLine line)
{
InvalidateLines(line.NextLine);
@ -336,6 +340,7 @@ namespace ICSharpCode.XamlBinding @@ -336,6 +340,7 @@ namespace ICSharpCode.XamlBinding
{
highlightCache.Clear();
}
#endregion
public struct HighlightingInfo
{

Loading…
Cancel
Save