We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8daed7 commit 632c6bcCopy full SHA for 632c6bc
1 file changed
src/index.ts
@@ -101,7 +101,7 @@ function init(modules: { typescript: typeof ts_module }) {
101
let diagnostic: ts.Diagnostic = {
102
file: file,
103
start: problem.getStartPosition().getPosition(),
104
- length: problem.getEndPosition().getPosition() - problem.getStartPosition().getPosition(),
+ length: problem.getEndPosition().getPosition() - problem.getStartPosition().getPosition() || 1,
105
messageText: message,
106
category: category,
107
source: 'tslint',
0 commit comments