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

    A command handler is an implementation of a command.

    A command can have multiple handlers but they should be active in different contexts, otherwise first active will be executed.

    interface UriCommandHandler<T extends MaybeArray<URI>> {
        onDidChangeEnabled?: Event<void>;
        execute(uri: T, ...args: any[]): any;
        isEnabled?(uri: T, ...args: any[]): boolean;
        isToggled?(...args: any[]): boolean;
        isVisible?(uri: T, ...args: any[]): boolean;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    onDidChangeEnabled?: Event<void>

    Methods