Skip to content

Commit cf3a752

Browse files
authored
Fix #8500 by not adding offset to line numbers (#8501)
1 parent bf4dc4d commit cf3a752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/transformers/vue/src/VueTransformer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ function createDiagnostic(err, filePath) {
192192
codeHighlights: [
193193
{
194194
start: {
195-
line: err.loc.start.line + err.loc.start.offset,
195+
line: err.loc.start.line,
196196
column: err.loc.start.column,
197197
},
198198
end: {
199-
line: err.loc.end.line + err.loc.end.offset,
199+
line: err.loc.end.line,
200200
column: err.loc.end.column,
201201
},
202202
},

0 commit comments

Comments
 (0)