extension now names the file for external errors
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user