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 }}
Repository navigation
Web console: line numbers on sub-query run markers repeat after each edit #20605
In the workbench SQL editor, the line number of a line that has (or had) a sub-query "run" marker repeats its digits after each edit. For example, line 6 shows 6666666 and line 14 shows 1414.
To reproduce: in the workbench, write a few queries separated by blank lines so they get "run" markers, then keep typing. The numbers on the marker lines grow by one copy per edit. Lines that never had a marker are not affected.
Cause
SubQueryMarker.toDOM() in web-console/src/views/workbench-view/flexible-query-input/sub-query-markers.ts returns a DocumentFragment with two nodes, the run button and the line number text:
CodeMirror assumes one DOM node per gutter marker: when it replaces a marker, GutterElement.setMarkers removes only the first node (domPos.remove()). The run button is removed, but the old number text node stays. The subQueries state field rebuilds the markers on every document change, so a marker line gains one more copy of its number with each edit.
Suggested fix
Return a single element, so CodeMirror removes the number with the button:
Activity