Interface ILSPConnectionAlpha

Interface describing he connection to the language server.

interface ILSPConnection {
    clientNotifications: ClientNotifications<keyof IClientNotifyParams>;
    clientRequests: ClientRequests<keyof IClientRequestParams>;
    closeSignal: ISignal<ILSPConnection, boolean>;
    disposed: ISignal<ILSPConnection, void>;
    errorSignal: ISignal<ILSPConnection, any>;
    isConnected: boolean;
    isDisposed: boolean;
    isInitialized: boolean;
    isReady: boolean;
    logAllCommunication: boolean;
    serverCapabilities: ServerCapabilities<any>;
    serverIdentifier?: string;
    serverInitialized: ISignal<ILSPConnection, ServerCapabilities<any>>;
    serverLanguage?: string;
    serverNotifications: ServerNotifications<keyof IServerNotifyParams>;
    serverRequests: ServerRequests<keyof IServerRequestParams>;
    close(): void;
    connect(socket: WebSocket): void;
    dispose(): void;
    provides(capability: keyof ServerCapabilities<any>): boolean;
    sendChange(documentInfo: IDocumentInfo): void;
    sendConfigurationChange(settings: DidChangeConfigurationParams): void;
    sendFullTextChange(text: string, documentInfo: IDocumentInfo): void;
    sendInitialize(): void;
    sendOpen(documentInfo: IDocumentInfo): void;
    sendOpenWhenReady(documentInfo: IDocumentInfo): void;
    sendSaved(documentInfo: IDocumentInfo): void;
}

Hierarchy

Properties

clientNotifications: ClientNotifications<keyof IClientNotifyParams>

Notifications that come from the client.

clientRequests: ClientRequests<keyof IClientRequestParams>

Requests that come from the client.

closeSignal: ISignal<ILSPConnection, boolean>

Signal emitted when the connection is closed.

disposed: ISignal<ILSPConnection, void>

A signal emitted when the object is disposed.

errorSignal: ISignal<ILSPConnection, any>

Signal emitted when the connection receives an error message..

isConnected: boolean

Is the language server is connected?

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

isInitialized: boolean

Is the language server is initialized?

isReady: boolean

Is the language server is connected and initialized?

logAllCommunication: boolean

Should log all communication?

serverCapabilities: ServerCapabilities<any>

Lists server capabilities.

serverIdentifier?: string

Identifier of the language server

serverInitialized: ISignal<ILSPConnection, ServerCapabilities<any>>

Signal emitted when the connection is initialized.

serverLanguage?: string

Language of the language server

serverNotifications: ServerNotifications<keyof IServerNotifyParams>

Notifications that come from the server.

serverRequests: ServerRequests<keyof IServerRequestParams>

Responses that come from the server.

Methods

  • Alpha

    Dispose of the resources held by the object.

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

  • Alpha

    Check if a capability is available in the server capabilities.

    Parameters

    • capability: keyof ServerCapabilities<any>

    Returns boolean

  • Alpha

    Send configuration change to the server.

    Parameters

    • settings: DidChangeConfigurationParams

    Returns void

  • Alpha

    The initialize request tells the server which options the client supports

    Returns void