Skip to content

Commit

Permalink
Fix line-numbers for error annotations
Browse files Browse the repository at this point in the history
The documentation says the line-numbers are 0-indexed,
However, in practice they are 1-index.
  • Loading branch information
AndreasMadsen committed Nov 13, 2023
1 parent 81d9f66 commit 8c4f75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github-action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ async function run() {
{
title: error.message,
file: result.filePath,
startLine: error.range.start.line,
endLine: error.range.end.line,
startLine: error.range.start.line + 1,
endLine: error.range.end.line + 1,
startColumn: error.range.start.character,
endColumn: error.range.end.character,
},
Expand Down

0 comments on commit 8c4f75c

Please sign in to comment.