Skip to content

Commit

Permalink
Fix #8500 by not adding offset to line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
lol768 committed Sep 25, 2022
1 parent de15695 commit fd7c2b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transformers/vue/src/VueTransformer.js
Expand Up @@ -191,11 +191,11 @@ function createDiagnostic(err, filePath) {
codeHighlights: [
{
start: {
line: err.loc.start.line + err.loc.start.offset,
line: err.loc.start.line,
column: err.loc.start.column,
},
end: {
line: err.loc.end.line + err.loc.end.offset,
line: err.loc.end.line,
column: err.loc.end.column,
},
},
Expand Down

0 comments on commit fd7c2b7

Please sign in to comment.