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

    A code lens provider adds commands to source text. The commands will be shown as dedicated horizontal lines in between the source text.

    interface CodeLensProvider<T extends CodeLens = CodeLens> {
        onDidChangeCodeLenses?: Event<void>;
        provideCodeLenses(
            document: TextDocument,
            token: CancellationToken,
        ): ProviderResult<T[]>;
        resolveCodeLens?(codeLens: T, token: CancellationToken): ProviderResult<T>;
    }

    Type Parameters

    Index

    Properties

    onDidChangeCodeLenses?: Event<void>

    An optional event to signal that the code lenses from this provider have changed.

    Methods