We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0438765 commit b59c844Copy full SHA for b59c844
src/extension.ts
@@ -320,13 +320,14 @@ async function runCppcheckOnFileXML(
320
const loc = locations[locations.length - i].$;
321
const msg = loc.info;
322
const lLine = Number(loc.line) - 1;
323
+ const lCol = Number(loc.col) - 1;
324
325
if (msg === null || msg === undefined || isNaN(lLine) || lLine < 0 || lLine >= document.lineCount) {
326
continue;
327
}
328
329
const relatedRange = new vscode.Range(
- lLine, 0,
330
+ lLine, lCol,
331
lLine, document.lineAt(lLine).text.length
332
);
333
0 commit comments