提交 c118bf28 编写于 作者: M manishv

Fix for bug 1048368: Suppressing/escalating user diagnostics through project...

Fix for bug 1048368: Suppressing/escalating user diagnostics through project property pages isn't reflected in live errors

Fix assumptions about warnaserror and nowarn ID value being integers at bunch of places in Roslyn code. (changeset 1353758)
上级 bb235dce
......@@ -482,6 +482,10 @@ private void SetWarnings(string warnings, ReportDiagnostic reportStyle)
{
this.Warnings["CS" + warningId.ToString("0000")] = reportStyle;
}
else
{
this.Warnings[warning] = reportStyle;
}
}
}
}
......
......@@ -695,6 +695,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Dim warningId As Integer
If Int32.TryParse(warning, warningId) Then
Me._warnings("BC" + warningId.ToString("0000")) = reportStyle
Else
Me._warnings(warning) = reportStyle
End If
Next
End If
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册