Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pretty printer for diagnostic ranges (haskell/ghcide#871)
With the current implementation, VS Code will show "1:1" for the top left corner, but the pretty printer renders this poisition to "1:0". This is particularly interesting for people building command line tools using `ghcide`, like the our DAML compiler at Digital Asset. tools with command line drivers, like us at Digital Asset. I would argue that VS Code has the ultimate authority on this since we can't change what it displays without also moving the squiggly lines. This PR fixes the discrepance by simply adding one to the column number in the prtty printer, like we do for the line number.
- Loading branch information