diff options
Diffstat (limited to 'cli/tools/lint.rs')
-rw-r--r-- | cli/tools/lint.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index 1b2487e4c..9925c3273 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -413,9 +413,11 @@ impl LintReporter for PrettyLintReporter { d.hint.as_ref(), &format_location(&JsStackFrame::from_location( Some(d.filename.clone()), - Some(d.range.start.line_index as i64 + 1), // 1-indexed - // todo(#11111): make 1-indexed as well - Some(d.range.start.column_index as i64), + // todo(dsherret): these should use "display positions" + // which take into account the added column index of tab + // indentation + Some(d.range.start.line_index as i64 + 1), + Some(d.range.start.column_index as i64 + 1), )), ); |