Interface UriCommandHandler<T>

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> {
    onDidChangeEnabled?: Event<void>;
    execute(uri, ...args): any;
    isEnabled?(uri, ...args): boolean;
    isToggled?(...args): boolean;
    isVisible?(uri, ...args): boolean;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

onDidChangeEnabled?: Event<void>

Methods