Related spans on missing list/block/function body terminators #34870
Labels
Domain: Error Messages
The issue relates to error messaging
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Experience Enhancement
Noncontroversial enhancements
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
Uh oh!
There was an error while loading. Please reload this page.
From @robpalme: https://twitter.com/robpalmer2/status/1190383568612184064
https://www.typescriptlang.org/play/?ssl=8&ssc=1&pln=9&pc=1#code/GYVwdgxgLglg9mABAIwIYGcCmB9GYZQAUAlIgN4BQliNiFAvhRbYqJLAogLaYnnO0GFIA
When an ending curly brace (or similar) is missing, we can give some better hints to the user.
Specifically, we can use a related span and explain where the corresponding starting point is:
The text was updated successfully, but these errors were encountered: