Closed Bug 1834729 Opened 2 years ago Closed 1 year ago

Show a link to the original source when selecting a location in a generated source

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For now, we only display the relationship from original to generated source.
We display a link in bottom right editor's footer when we are on an original source.
This link will opened the related generated source.

But then, once you are on the generated source, these is no link back to that original source.
It would be handy to also have this reversed link so that you can easily go back and forth between the two.

Note that this link would be slightly more complex as it will depend on the precise location where we are in the generated source. Based on that location you may map to different original sources.

It might be nice to also show the list of all original source implemented in the current generated source, but we may keep that as a followup.

Blocks: 1850024

For now, we were only showing the related bundle file,
so that we can easily navigate from original file to bundle file.
But we could also show the related original file for a location.
This is slightly more complex because the mapped location can now be different
depending on the precise location in the selected file.
Also, there is no synchronous API to compute this mapped location.
We have to involved an asynchronous action to compute this data for bundles.

Attachment #9351840 - Attachment description: Bug 1834729 - [devtools] Provide link to bundle, but also to original file in the footer. → Bug 1834729 - [devtools] Provide link to the related original file in the footer.
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Blocks: 1870062
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc0808c504a1 [devtools] Provide link to the related original file in the footer. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: