Theia API Documentation v1.65.0
    Preparing search index...

    A text document content provider allows to add readonly documents to the editor, such as source from a dll or generated html from md.

    Content providers are registered for a uri-scheme. When a uri with that scheme is to be loaded the content provider is asked.

    interface TextDocumentContentProvider {
        onDidChange?: Event<Uri>;
        provideTextDocumentContent(
            uri: Uri,
            token: CancellationToken,
        ): ProviderResult<string>;
    }
    Index

    Properties

    onDidChange?: Event<Uri>

    An event to signal a resource has changed.

    Methods