private bool CanHandle(string errorId) { // we accept all compiler diagnostics if (errorId.StartsWith(_errorCodePrefix)) { return(true); } return(_diagnosticProvider.SupportedDiagnosticId(_projectId, errorId)); }
private bool CanHandle(string errorId) { // make sure we have error id, otherwise, we simple don't support // this error if (errorId == null) { // record NFW to see who violates contract. WatsonReporter.Report(new Exception("errorId is null")); return(false); } // we accept all compiler diagnostics if (errorId.StartsWith(_errorCodePrefix)) { return(true); } return(_diagnosticProvider.SupportedDiagnosticId(_projectId, errorId)); }