Closed
Bug 1905380
Opened 3 months ago
Closed 3 months ago
Migrate the extension for rendering line markers from View Plugins to State Fields
Categories
(DevTools :: Debugger, task)
DevTools
Debugger
Tracking
(firefox129 fixed)
RESOLVED
FIXED
129 Branch
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: bomsy, Assigned: bomsy)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•3 months ago
|
||
Highlights of this patch
- Fixes the line shifting issue in the related bug as the
block
property can be used inDecoration.widget
. - Uses Statefields. With StateFields codemirror has more control over updates, avoiding possible crashes like in Bug 1898157
- Changes from using
conditions
on markers to usingpositions
, this means we can just render the marker at the
desired location without always needing to loop over the all the lines of the viewport. Most times the number ofpositions
to mark
are a lot lesser that the no of lines in theviewport
. - When explicitly updating a marker only the required decoration is updated.
Updated•3 months ago
|
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4003447ea832 [devtools] Refactor lineContentMarkers to use StateFields from ViewPlugins r=devtools-reviewers,nchevobbe
Comment 3•3 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox129:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•