Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit f71c523

Browse files
committed
fix line, col, and path
1 parent bb663e2 commit f71c523

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,16 @@ export default {
8686
// Check for proper warnings and errors from stdout
8787
if (info.length > 0) {
8888
info.forEach((issue) => {
89+
// bypass char line limit
90+
const line = issue.line - 1;
91+
const col = issue.column - 1;
92+
8993
toReturn.push({
9094
severity: issue.kind,
9195
excerpt: issue.message,
9296
location: {
93-
file: issue.path,
94-
position: helpers.generateRange(activeEditor, issue.line, issue.column),
97+
file: issue.fullpath,
98+
position: helpers.generateRange(activeEditor, line, col),
9599
},
96100
});
97101
});

0 commit comments

Comments
 (0)