Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ScriptCommandExecutorArguments

Arguments for a command execution.

Hierarchy

Index

Properties

arguments

arguments: IArguments

Arguments from the callback.

Optional button

button: vscode.StatusBarItem

The underlying button.

command

command: string

The ID of the underlying command.

Optional commandState

commandState: any

Defines data that should be keeped while the current session and is available for ONLY for current command.

emitGlobal

emitGlobal: function

Emits a global event.

param

The event.

param

The arguments.

Type declaration

    • (event: string | symbol, ...args: any[]): boolean
    • Parameters

      • event: string | symbol
      • Rest ...args: any[]

      Returns boolean

Optional globalState

globalState: any

Defines data that should be keeped while the current session and is available for ALL commands defined by that extension.

globals

The global variables from the settings.

openHtml

openHtml: function

Opens a HTML document in a new tab.

param

The HTML document (source code).

param

The custom title for the tab.

param

The custom ID for the document in the storage.

returns

The promise.

Type declaration

    • (html: string, title?: string, id?: any): Promise<any>
    • Parameters

      • html: string
      • Optional title: string
      • Optional id: any

      Returns Promise<any>

Optional options

options: any

The options.

replaceWithValues

replaceWithValues: function

Handles a value as string and replaces placeholders.

param

The value to parse.

returns

The parsed value.

Type declaration

    • (val: any): string
    • Parameters

      • val: any

      Returns string

require

require: function

Loads a module from the script context.

param

The ID / path to the module.

returns

The loaded module.

Type declaration

    • (id: string): any
    • Parameters

      • id: string

      Returns any

Methods

deployFiles

Generated using TypeDoc