extension now names the file for external errors

This commit is contained in:
2026-02-07 16:36:30 -08:00
parent 2766a4ae01
commit d1729afea7
2 changed files with 2 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
## TODO ## TODO
- [ ] For errors in other files, point to import
- [x] Unsolved metas should be errors (user metas are fine) - [x] Unsolved metas should be errors (user metas are fine)
- [x] Better syntax for forward declared data (so we can distinguish from functions) - [x] Better syntax for forward declared data (so we can distinguish from functions)
- [ ] maybe allow "Main" module name for any file - [ ] maybe allow "Main" module name for any file

View File

@@ -128,6 +128,7 @@ export function activate(context: vscode.ExtensionContext) {
let range = new vscode.Range(start, end); let range = new vscode.Range(start, end);
if (file !== fileName) { if (file !== fileName) {
range = new vscode.Range(new vscode.Position(0,0), new vscode.Position(0,0)); 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 // anything indented after the ERROR/INFO line are part of
// the message // the message