AbstractProtected_activeSignal emitted when the active editor have changed.
Protected_adapterSignal emitted when the adapter is connected.
Protected_disposedSignal emitted when the adapter is disposed.
Protected_editorSignal emitted when an editor is changed.
Protected_editorSignal emitted when an editor is removed.
ProtectedoptionsAbstractactiveSignal emitted when the active editor have changed.
Signal emitted when the adapter is connected.
The LSP document and connection manager instance.
Signal emitted when the adapter is disposed.
AbstractdocumentGet current path of the document.
Signal emitted when the an editor is changed.
Signal emitted when the an editor is removed.
AbstracteditorsGet 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
AbstractlanguageGet the file extension of the document.
AbstractmimeGet the mime type of the document.
AbstractreadyThe translator provider.
Internal virtual document of the adapter.
Get the ID of the internal widget.
AbstractwrapperGet the inner HTMLElement of the document widget.
ProtectedconnectOpens 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
whether to open the document immediately
Protected Abstractcreate(re)create virtual document using current path and language
Callback called on the document changed event.
AbstractgetAbstractgetGet the index of editor from the cursor position in the virtual document.
the position of cursor in the virtual document.
AbstractgetGet the wrapper of input editor.
ProtectedinitProtectedonConnect the virtual document with the language server.
Callback on connection closed event.
ProtectedonHandler 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
ProtectedonCallback on document saved event.
Protectedreload
Foreign code: low level adapter is not aware of the presence of foreign languages; it operates on the virtual document and must not attempt to infer the language dependencies as this would make the logic of inspections caching impossible to maintain, thus the WidgetAdapter has to handle that, keeping multiple connections and multiple virtual documents.