|
|
@ -51,6 +51,7 @@ namespace CSharpBinding.Refactoring |
|
|
|
if (attributes.Length == 1) { |
|
|
|
if (attributes.Length == 1) { |
|
|
|
this.Attribute = (IssueDescriptionAttribute)attributes[0]; |
|
|
|
this.Attribute = (IssueDescriptionAttribute)attributes[0]; |
|
|
|
defaultSeverity = this.Attribute.Severity; |
|
|
|
defaultSeverity = this.Attribute.Severity; |
|
|
|
|
|
|
|
IsRedundancy = this.Attribute.Category == IssueCategories.Redundancies; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
SD.Log.Warn("Issue provider without attribute: " + ProviderType); |
|
|
|
SD.Log.Warn("Issue provider without attribute: " + ProviderType); |
|
|
|
} |
|
|
|
} |
|
|
@ -59,6 +60,7 @@ namespace CSharpBinding.Refactoring |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Severity CurrentSeverity { get; set; } |
|
|
|
public Severity CurrentSeverity { get; set; } |
|
|
|
|
|
|
|
public bool IsRedundancy { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public IssueMarker MarkerType { |
|
|
|
public IssueMarker MarkerType { |
|
|
|
get { return Attribute != null ? Attribute.IssueMarker : IssueMarker.Underline; } |
|
|
|
get { return Attribute != null ? Attribute.IssueMarker : IssueMarker.Underline; } |
|
|
@ -171,7 +173,8 @@ namespace CSharpBinding.Refactoring |
|
|
|
Color color = GetColor(this.Severity); |
|
|
|
Color color = GetColor(this.Severity); |
|
|
|
color.A = 186; |
|
|
|
color.A = 186; |
|
|
|
marker.MarkerColor = color; |
|
|
|
marker.MarkerColor = color; |
|
|
|
marker.MarkerTypes = TextMarkerTypes.ScrollBarRightTriangle; |
|
|
|
if (!Provider.IsRedundancy) |
|
|
|
|
|
|
|
marker.MarkerTypes = TextMarkerTypes.ScrollBarRightTriangle; |
|
|
|
switch (Provider.MarkerType) { |
|
|
|
switch (Provider.MarkerType) { |
|
|
|
case IssueMarker.Underline: |
|
|
|
case IssueMarker.Underline: |
|
|
|
marker.MarkerTypes |= TextMarkerTypes.SquigglyUnderline; |
|
|
|
marker.MarkerTypes |= TextMarkerTypes.SquigglyUnderline; |
|
|
|