Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FileSavedEventActionScriptArguments

Arguments for script that is executed when a file has been saved.

Hierarchy

Index

Properties

changeType

changeType: FileChangeType

The type of change.

document

document: TextDocument

The underlying document (if available).

extension

extension: ExtensionContext

The underlying extension (context).

file

file: Uri

The changed file / folder.

globalState

globalState: KeyValuePairs

Gets the global state object.

globalStore

globalStore: Store

The global store.

globals

globals: any
inheritdoc

logger

logger: Logger

The logger.

options

options: any

Options for running the script.

output

output: OutputChannel

The output channel.

replaceValues

replaceValues: function

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

require

require: function

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

state

state: any

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

store

store: Store

The user store for the underlying script.

Generated using TypeDoc