Now the API returns `source: {line: num, file: x}` where x
is null for the user-supplied file and a path otherwise.
Hopefully fixes#353, and #418 and #417 - previosuly we misidentified
external lines as being for this file, so the STL includes (for example)
would be misinterpreted as being local. As the STL includes are huge,
we'd try and colourise line 600, or similar.
Tests updated accordingly.
Hopefully helps #485. Relies on the mtime of the executable
changing to notice it's different, so will be thwarted if only
DLLs/sos change. But that's not really all that likely given the
way CE works currently.
This functionality has been there for quite a while but never
got implemented properly. This finally fixes it.
Found while trying to narrow down possible reasons for referenced
issue
Releated issues: #482
By changing lastResult default value to `{}` it won't complain
if we try to access one of its children if somehow we don't edit it
beforehand.
@jaredwy can you check that this is indeed not breaking something
unexpected? I'm only 98% sure. That 2% worries me a bit
This is an initial implementation of a changelog ready to be used.
If @mattgodbolt is happy with how it looks, it can be used as-is
Related issue: #474
Due to a limit on Monaco, we can't do much but wait for them to
change it (Issue already submitted)
This improves #484 but does NOT fix it. I'll be tracking it until
we have some way of expanding the line numbers width
Commit 7de967f changed the way we send compilation requests
but did not change conformance view accordingly.
Check comments on referenced issue for a more in depth explanation
Fixes#483
Remove 'compiler.type' in favour of the comiler itself being
given an option to say what type it is. Default for that does
the same guess that the old code did (plus some bug fixes).
Fixed up (I hope!) some of the parsing of the output. I should write
some tests really.
CC @jaredw for further comment