bufbuild/protocompile

Feature Request: ErrorWithRange or ErrorWithNode

Alfus opened this issue · 0 comments

To properly highlight an error, just a position is often insufficient:

image

In this case, the red underline is only covering the first Ident for the type reference, when it should underline the entire reference.

For linking errors especially, it would be nice to get a range for the error (covering the Node in question) or even the problematic node, so that the highlighting can cover entire problematic Node.