Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WorkspaceCommandScriptArgumentsForFolders

Arguments for a workspace command, which is executed for an active or selected folder.

Hierarchy

Index

Properties

Readonly arguments

arguments: any[]

The argument that have been submitted to the command.

Readonly command

command: string

The ID of the command.

Readonly extension

extension: ExtensionContext

The underlying extension (context).

Readonly folder

folder: Uri

The underlying folder.

Readonly globalState

globalState: KeyValuePairs<any>

Gets the global state object.

Readonly globalStore

globalStore: Store

The global store.

Readonly globals

globals: any

Readonly logger

logger: Logger

The logger.

Readonly options

options: any

Options for running the script.

Readonly output

output: OutputChannel

The output channel.

Readonly replaceValues

replaceValues: (val: any) => string

Handles a value as string and replaces placeholders.

param

The input value.

returns

The output value.

Type declaration

    • (val: any): string
    • Parameters

      • val: any

      Returns string

Readonly require

require: (id: string) => any

Imports a module from the extension's context.

param

The ID of the module.

returns

The module.

Type declaration

    • (id: string): any
    • Parameters

      • id: string

      Returns any

Readonly source

The source.

state

state: any

Provides a property to save data permanently while the current (extension) session.

Readonly store

store: Store

The user store for the underlying script.

Generated using TypeDoc