Options
All
  • Public
  • Public/Protected
  • All
Menu

Collection of Command related API functions

Index

Functions

Functions

registerCommand

  • registerCommand(command: string, callback: (...args: any[]) => any): Disposable
  • Register a command to be called by name later

    Parameters

    • command: string

      Name of the command

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

      Function to run when called

        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns Disposable

    Disposable to register to context.subscriptions

Generated using TypeDoc