Include line when stepping back to get to right index

This commit is contained in:
Francesco Renzi
2026-01-16 00:49:08 +00:00
parent b652350bda
commit 82e35c0caa
2 changed files with 10 additions and 20 deletions

View File

@@ -517,7 +517,7 @@ namespace GitHub.Runner.Worker.Dap
{
Id = CurrentFrameId,
Name = $"{_currentStep.DisplayName ?? "Current Step"}{resultIndicator}",
Line = 1,
Line = _pendingStepIndex + 1, // 1-indexed to match GitHub UI's data-number attribute
Column = 1,
PresentationHint = "normal"
});
@@ -528,7 +528,7 @@ namespace GitHub.Runner.Worker.Dap
{
Id = CurrentFrameId,
Name = "(no step executing)",
Line = 1,
Line = 0,
Column = 1,
PresentationHint = "subtle"
});