Interface ILanguageServerManager

interface ILanguageServerManager {
    isDisposed: boolean;
    isEnabled: boolean;
    ready: Promise<void>;
    sessions: TSessionMap;
    sessionsChanged: ISignal<ILanguageServerManager, void>;
    settings: ServerConnection.ISettings;
    statusCode: number;
    statusUrl: string;
    disable(): void;
    dispose(): void;
    enable(): Promise<void>;
    fetchSessions(): Promise<void>;
    getMatchingServers(options: IGetServerIdOptions): TLanguageServerId[];
    getMatchingSpecs(options: IGetServerIdOptions): TSpecsMap;
    setConfiguration(
        configuration: Partial<Record<TLanguageServerId, LanguageServer1>>,
    ): void;
}

Hierarchy

Implemented by

Properties

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

isEnabled: boolean

Check if the manager is enabled or disabled

ready: Promise<void>

A promise that is fulfilled when the connection manager is ready.

sessions: TSessionMap

The current session information of running language servers.

sessionsChanged: ISignal<ILanguageServerManager, void>

Signal emitted when the language server sessions are changed.

Get server connection settings.

statusCode: number

Status code of the fetchSession request.

statusUrl: string

Current endpoint to get the status of running language servers

Methods

  • 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