Use 1-based row/column in error messages

This commit is contained in:
2025-09-29 12:42:13 -07:00
parent bab25f8dce
commit 495ed78c80
6 changed files with 630 additions and 855 deletions

View File

@@ -114,8 +114,8 @@ export function activate(context: vscode.ExtensionContext) {
);
if (match) {
let [_full, kind, file, line, column, message] = match;
let lnum = Number(line);
let cnum = Number(column);
let lnum = Number(line) - 1;
let cnum = Number(column) - 1;
if (file !== fileName) lnum = cnum = 0;
let start = new vscode.Position(lnum, cnum);