Protected
_activeProtected
_adapterSignal emitted when the adapter is connected.
Protected
_disposedSignal emitted when the adapter is disposed.
Private
Readonly
_docThe document registry instance.
Protected
_editorSignal emitted when an editor is changed.
Protected
_editorSignal emitted when an editor is removed.
Private
_readyPrivate
Readonly
_virtualReadonly
editorThe wrapped FileEditor
widget.
Protected
optionsGet the activated CM editor.
Get the CM editor
The LSP document and connection manager instance.
Get current path of the document.
Get the list of CM editors in the document, there is only one editor in the case of file editor.
Check if the document contains multiple editors
The virtual document is connected or not
Check if the adapter is disposed
Get the language identifier of the document
Get the file extension of the document.
Get the mime type of the document.
Get current path of the document.
The translator provider.
Internal virtual document of the adapter.
Get the ID of the internal widget.
Get the inner HTMLElement of the document widget.
Protected
connectOpens a connection for the document. The connection may or may not be initialized, yet, and depending on when this is called, the client may not be fully connected.
a VirtualDocument
Optional
sendOpen: booleanwhether to open the document immediately
Get the index of editor from the cursor position in the virtual document. Since there is only one editor, this method always return 0
the position of cursor in the virtual document.
This is error-prone and will be removed in JupyterLab 5.0, use getEditorIndex()
with virtualDocument.getEditorAtVirtualLine(position)
instead.
Get the wrapper of input editor.
Protected
initProtected
initProtected
onProtected
onHandler for opening a document contained in a parent document. The assumption is that the editor already exists for this, and as such the document should be queued for immediate opening.
the VirtualDocument that contains the VirtualDocument in another language
information about the foreign VirtualDocument
Protected
onCallback on document saved event.
Protected
reload
Signal emitted when the active editor have changed.