zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.61k stars 72 forks source link

Feature request: Show the whole content #21

Open nbigaouette opened 2 years ago

nbigaouette commented 2 years ago

I'm using ariadne to highlight certain locations in a file.

If a span to highlight contains multiple lines then ariadne will not show the whole content, only the first and last lines of the span.

For my specific use case I would like to still be able to see all the lines contained in the span. I am not sure it is possible right now.

Could an option be added to instruct ariadne to print all span's lines?

Thanks a lot!

zesterer commented 2 years ago

I'll add this feature to the refactor I'm currently working on!

zesterer commented 2 years ago

This is not yet fixed, but is visually improved in 0.1.5, which has just been released. There is at least an indicator for the skipped lines now.