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 Oct 23, 2022
1 parent 4ba031a commit d6f5063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transformers/vue/src/VueTransformer.js
Expand Up @@ -192,11 +192,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 d6f5063

Please sign in to comment.