Skip to content

Commit 74fd716

Browse files
committed
Exclude Description lines of next method
1 parent fd6be5c commit 74fd716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ourFileCoverage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ ORDER BY StartLine
159159
const descriptionLineCount = Number(element.DescriptionLineCount);
160160
if (previousMethod && previousStartLine) {
161161
const start = new vscode.Position(previousStartLine - 1 + startOffset, 0);
162-
const end = new vscode.Position(currentStartLine - 2 + endOffset, Number.MAX_VALUE);
162+
const end = new vscode.Position(currentStartLine - 2 + endOffset - descriptionLineCount, Number.MAX_VALUE);
163163
detailedCoverage.push(new vscode.DeclarationCoverage(previousMethod, true, new vscode.Range(start, end)));
164164
}
165165
startOffset = endOffset;

0 commit comments

Comments
 (0)