From d1729afea7d1f97ebe56891671d1c125389aad07 Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Sat, 7 Feb 2026 16:36:30 -0800 Subject: [PATCH] extension now names the file for external errors --- TODO.md | 1 + newt-vscode/src/extension.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/TODO.md b/TODO.md index 84f8b80..38915a7 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,7 @@ ## TODO +- [ ] For errors in other files, point to import - [x] Unsolved metas should be errors (user metas are fine) - [x] Better syntax for forward declared data (so we can distinguish from functions) - [ ] maybe allow "Main" module name for any file diff --git a/newt-vscode/src/extension.ts b/newt-vscode/src/extension.ts index 3a68539..a740318 100644 --- a/newt-vscode/src/extension.ts +++ b/newt-vscode/src/extension.ts @@ -128,6 +128,7 @@ export function activate(context: vscode.ExtensionContext) { let range = new vscode.Range(start, end); if (file !== fileName) { range = new vscode.Range(new vscode.Position(0,0), new vscode.Position(0,0)); + message = `Error in ${file}: ${message}` } // anything indented after the ERROR/INFO line are part of // the message