Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

The "From <generated>" footer unexpectedly always goes to line 1 of generated file #8088

Closed
loganfsmyth opened this issue Mar 7, 2019 · 1 comment

Comments

@loganfsmyth
Copy link
Contributor

When viewing a sourcemapped file, the editor shows a (From <file>) footer just below it that will take the users to the generated file. The problem is that this footer always goes to the first line of the generated file, which I don't think is particularly useful once your bundle grows.

The quickest thing would be to find the line/column of the first mapping in the original file. In a perfect world though, we'd use the current editor scroll position on the original file to pick a specific mapping to jump to in the generated file.

I'm not familiar with how we track the current position on files, but it may make sense to try to make some common logic for this kind of thing.

@janodvarko
Copy link
Member

Cloned into Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1695637

Firefox Developer Tools (including Debugger tool) development is now entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

Honza

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

No branches or pull requests

3 participants