Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 76efd42

Browse files
author
Stanislav Panferov
committed
feat(helpers): add +1 to line because they are zero-based in TS
1 parent 009e875 commit 76efd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function formatMessageChain(chain: ts.DiagnosticMessageChain) {
7979
}
8080

8181
export function formatLineChar(lineChar) {
82-
return ':' + lineChar.line + ':' + lineChar.character;
82+
return ':' + (lineChar.line + 1) + ':' + lineChar.character;
8383
}
8484

8585
export function loadLib(moduleId) {

0 commit comments

Comments
 (0)