-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add code snippets to JSON and XML in builtin provider #254
Comments
Motivation for calling this a feature and not a bug fix revolves around the fact that the jsonquery and xmlquery libraries we are currently using do not track the location of nodes in the xml/json documents they are working with. Finding the location of a node matching some xml/json query is not immediately obvious. We could:
It's not immediately obvious that this is a huge ask from our user base. Currently rating this as an important long-term feature. |
…ON files (#412) Fixes #410 Fixes #254 There were two choices to do this: 1. Add a new optional field lineNumber to Dep type, and let the providers populate it at the time of dependency discovery. This is straight-forward and probably preferred, but requires a change in the output API. 2. Add a new interface like Snipper, that providers can implement for deps to get locations for a certain dependency. I chose No. 2 because output API change not needed. But I am not fan of it as its complicated & perf penalty. Asking for your inputs on the approach. If we do go with 2, I think we should we should still remove it in later versions in favor of a new optional field on Dep. Even if we did add it now, it would be non-intrusive. --------- Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
It'd be great to have code locations in JSON and XML capabilities too similar to what I did in #253
The text was updated successfully, but these errors were encountered: