Langium - v4.4.0
    Preparing search index...

    Interface TextDocumentContentProvider

    Shared service for handling the LSP text document content request. It allows clients to request the content of a text document given its URI.

    This is useful for scenarios where a reference is pointing to a virtual document (such as a builtin library). The client can request the content of that document using this service, without needing to implement a dedicated file system provider on the client side or other means of accessing the document content.

    interface TextDocumentContentProvider {
        schemes: string[];
        provideTextDocumentContent(
            params: TextDocumentContentParams,
            cancellationToken: Cancellation.CancellationToken,
        ): Promise<TextDocumentContentResult | undefined>;
    }

    Implemented by

    Index
    schemes: string[]

    The URI schemes that this provider supports.