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

Commit

Permalink
feat(helpers): add +1 to line because they are zero-based in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Panferov committed May 30, 2015
1 parent 009e875 commit 76efd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function formatMessageChain(chain: ts.DiagnosticMessageChain) {
}

export function formatLineChar(lineChar) {
return ':' + lineChar.line + ':' + lineChar.character;
return ':' + (lineChar.line + 1) + ':' + lineChar.character;
}

export function loadLib(moduleId) {
Expand Down

0 comments on commit 76efd42

Please sign in to comment.