Closed xunilrj closed 1 month ago
Just thinking, maybe a few simple tests that do the happy path and also bounds checks might be worth it so we don't introduce unwanted behaviour?
I have changed the algorithm to something easier to understand, more performant, given that we iterate the string only once, and I have also written more tests.
Description
This PR solves a small bug when calculating the code snippets of some diagnostics.
Checklist
Breaking*
orNew Feature
labels where relevant.