Closed lbussell closed 3 months ago
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.
Our previous error reporting only reported the file that template errors are in and then dumped some of the template text out.
This PR improves it by actually printing which line and column the errors are on. The error location format is
{startLine},{startColumn},{endLine},{endColumn}
, in order to comply with VS Code's problem matching syntax.With a custom template generation task and problem matcher, this allows us to get accurate error reporting for template generation: