Related rescript-lang/rescript#6203
Currently, VSC parses the error logs from /lib/bs/.compiler.log to extract the necessary information for the editor. However, this is a fragile system prone to parsing errors when dealing with corner cases from the compiler. To improve this, the compiler could model the error information into a JSON format for VSC to use.