To extract the cell's codemirror editor from the nbdime widget

Hello,

In jupyterlab-git repo, I want to highlight a specific line in the nbdime widget.

I know the cell number and the line number I want to highlight.
My understanding is that I need to get the cell’s widget which should have an editor instance stored in it. From this._nbdWidget, I am able to get the CellDiffModel but am unable to find the cell widgets or the editor instance.

Can someone please guide me on how I can access the cell’s editor?

Thank you.

this._nbdWidget._layout has a widgets array but the editorFactory is undefined and I don’t see any editor instace corresponding to any cell in the array.