VS Code API
    Preparing search index...

    Function registerCommand

    • Registers a command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.

      Registering a command with an existing command identifier twice will cause an error.

      Parameters

      • command: string

        A unique identifier for the command.

      • callback: (...args: any[]) => any

        A command handler function.

      • OptionalthisArg: any

        The this context used when invoking the handler function.

      Returns Disposable

      Disposable which unregisters this command on disposal.