You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
Actually the source map reference for a particular symbol is done guessing where the reference could be
/* Unfortunately drafter is missing some required sourcemaps, so as a temporaney solution, I have to try to lookup into multiple paths. */letsourceMap=lodash.get(queryResult,'attributes.sourceMap',lodash.get(queryResult,'meta.title.attributes.sourceMap',lodash.get(queryResult,'attributes.href.attributes.sourceMap',lodash.get(queryResult,'content[0].attributes.method.attributes.sourceMap'))));
While this actually kind-of-works, it can miss better sourcemaps developed with future drafter version as well not get all cases.
The idea here would be that, when missing sourcemaps on queried element, a refract-query call should be performed with a 1 limit, and use that as nearest sourcemap
Another idea would be take first AND last sourcemaps object from the childs and compute the block from those ones. Mark them as inferred, eventually.
It would be a great idea to signal this thing to VSCode some how, like "Hey, this is not the precise sourcemap, but this is the nearest I was able to find."
The text was updated successfully, but these errors were encountered:
Actually the source map reference for a particular symbol is done guessing where the reference could be
While this actually kind-of-works, it can miss better sourcemaps developed with future drafter version as well not get all cases.
refract-query
call should be performed with a1
limit, and use that as nearest sourcemapIt would be a great idea to signal this thing to VSCode some how, like "Hey, this is not the precise sourcemap, but this is the nearest I was able to find."
The text was updated successfully, but these errors were encountered: