frontend / shared/ui/breakpointGutter / activeLineHighlight
Function: activeLineHighlight()
activeLineHighlight(
line):Extension
Defined in: shared/ui/breakpointGutter.ts:56
CodeMirror extension which highlights one line with yellow background.
Returns empty extension when line is null, so it is safe to attach it without conditions. Also handles case when code was regenerated during pause and highlighted line does not exist anymore.
Parameters
line
number | null
1-based line number to highlight, or null for no highlight.
Returns
Extension