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