Class DocumentConnectionManager

Each Widget with a document (whether file or a notebook) has the same DocumentConnectionManager (see JupyterLabWidgetAdapter). Using id_path instead of uri led to documents being overwritten as two identical id_paths could be created for two different notebooks.

Implements

Constructors

Properties

adapters: Map<
    string,
    WidgetLSPAdapter<IDocumentWidget<Widget, DocumentRegistry.IModel>>,
>

Map between the path of the document and its adapter

connections: Map<string, LSPConnection>

Map between the URI of the virtual document and its connection to the language server

documents: Map<string, VirtualDocument>

Map between the URI of the virtual document and the document itself.

Initial configuration for the language servers.

languageServerManager: ILanguageServerManager

The language server manager plugin.

Accessors

Methods

  • Fired the first time a connection is opened. These should be the only invocation of .on (once remaining LSPFeature.connection_handlers are made singletons).

    Parameters

    • connection: LSPConnection

    Returns void