Skip to content

Commit

Permalink
Send stepNumber for annotation to run-service (#3614)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Dec 9, 2024
1 parent 078eb3b commit 27f6ca8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sdk/RSWebApi/Contracts/Annotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ public struct Annotation

[DataMember(Name = "endColumn", EmitDefaultValue = false)]
public long EndColumn;

[DataMember(Name = "stepNumber", EmitDefaultValue = false)]
public long StepNumber;
}
}
2 changes: 2 additions & 0 deletions src/Sdk/RSWebApi/Contracts/IssueExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -38,6 +39,7 @@ public static class IssueExtensions
EndLine = endLineNumber,
StartColumn = columnNumber,
EndColumn = endColumnNumber,
StepNumber = stepNumber,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/Sdk/RSWebApi/Contracts/IssueKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

0 comments on commit 27f6ca8

Please sign in to comment.