Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply end position in warnings and errors #1235

Closed
jamesbirtles opened this issue Mar 14, 2018 · 1 comment
Closed

Supply end position in warnings and errors #1235

jamesbirtles opened this issue Mar 14, 2018 · 1 comment

Comments

@jamesbirtles
Copy link
Contributor

using the onwarn and onerror hooks you can get the start position of the error/warning, but theres currently no way to know the end position. This would be useful for editor extensions visually show where the error is.

From a quick search it looks like most if not all places that call validator.warn get the position from a node which has a start and end position, so I don't think it would be too difficult to add.

@Rich-Harris
Copy link
Member

this was closed via #1250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants