diff --git a/src/Sdk/RSWebApi/Contracts/Annotation.cs b/src/Sdk/RSWebApi/Contracts/Annotation.cs index fab07bec950..80d2eae8275 100644 --- a/src/Sdk/RSWebApi/Contracts/Annotation.cs +++ b/src/Sdk/RSWebApi/Contracts/Annotation.cs @@ -31,5 +31,8 @@ public struct Annotation [DataMember(Name = "endColumn", EmitDefaultValue = false)] public long EndColumn; + + [DataMember(Name = "stepNumber", EmitDefaultValue = false)] + public long StepNumber; } } diff --git a/src/Sdk/RSWebApi/Contracts/IssueExtensions.cs b/src/Sdk/RSWebApi/Contracts/IssueExtensions.cs index 559935ba6fd..d8d0d075ce0 100644 --- a/src/Sdk/RSWebApi/Contracts/IssueExtensions.cs +++ b/src/Sdk/RSWebApi/Contracts/IssueExtensions.cs @@ -22,6 +22,7 @@ public static class IssueExtensions var columnNumber = GetAnnotationNumber(issue, RunIssueKeys.Col) ?? 0; var endColumnNumber = GetAnnotationNumber(issue, RunIssueKeys.EndColumn) ?? columnNumber; var logLineNumber = GetAnnotationNumber(issue, RunIssueKeys.LogLineNumber) ?? 0; + var stepNumber = GetAnnotationNumber(issue, RunIssueKeys.StepNumber) ?? 0; if (path == null && lineNumber == 0 && logLineNumber != 0) { @@ -38,6 +39,7 @@ public static class IssueExtensions EndLine = endLineNumber, StartColumn = columnNumber, EndColumn = endColumnNumber, + StepNumber = stepNumber, }; } diff --git a/src/Sdk/RSWebApi/Contracts/IssueKeys.cs b/src/Sdk/RSWebApi/Contracts/IssueKeys.cs index 61df3b8becf..5a3b157a6dc 100644 --- a/src/Sdk/RSWebApi/Contracts/IssueKeys.cs +++ b/src/Sdk/RSWebApi/Contracts/IssueKeys.cs @@ -9,5 +9,6 @@ public static class RunIssueKeys public const string EndLine = "endLine"; public const string EndColumn = "endColumn"; public const string LogLineNumber = "logFileLineNumber"; + public const string StepNumber = "stepNumber"; } }