Interface ServiceRegistry

The service registry provides access to the language-specific LangiumCoreServices optionally including LSP-related services. These are resolved via the URI of a text document.

interface ServiceRegistry {
    all: readonly LangiumCoreServices[];
    getServices(uri: URI): LangiumCoreServices;
    hasServices(uri: URI): boolean;
    register(language: LangiumCoreServices): void;
}

Implemented by

Properties

all: readonly LangiumCoreServices[]

The full set of registered language services.

Methods