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)

task

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.

Highlights of this patch

  • Fixes the line shifting issue in the related bug as the block property can be used in Decoration.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 using positions, 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 of positions to mark
    are a lot lesser that the no of lines in the viewport.
  • When explicitly updating a marker only the required decoration is updated.
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
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: