This patch partially restores the behavior changed in D46942/rC332590
If the source file path contains directory junctions, and we resolve them when printing
diagnostic messages, these paths look independent for an IDE. For example, both Visual
Studio and Visual Studio Code open separate editors for such paths, which is not only
inconvenient but might even result in loss of the changes made in one of them.
I think this requires a comment explaining why Windows is handled differently.