Skip to content

Commit

Permalink
Merge pull request #1034 from srivatsn/diagnostics
Browse files Browse the repository at this point in the history
Return a diagnostic's Id from /codecheck calls
  • Loading branch information
DustinCampbell authored Nov 29, 2017
2 parents 5f6da1d + d0a66f0 commit aae4cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
public class DiagnosticLocation : QuickFix
{
public string LogLevel { get; set; }
public string Id { get; set; }
}
}
3 changes: 2 additions & 1 deletion src/OmniSharp.Roslyn.CSharp/Helpers/DiagnosticExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ internal static DiagnosticLocation ToDiagnosticLocation(this Diagnostic diagnost
EndLine = span.EndLinePosition.Line,
EndColumn = span.EndLinePosition.Character,
Text = diagnostic.GetMessage(),
LogLevel = diagnostic.Severity.ToString()
LogLevel = diagnostic.Severity.ToString(),
Id = diagnostic.Id
};
}

Expand Down

0 comments on commit aae4cb8

Please sign in to comment.