FileWillRenameEvent

An event that is fired when files are going to be renamed.

To make modifications to the workspace before the files are renamed, call the waitUntil-function with a thenable that resolves to a workspace edit.

Online Documentation

Properties

Link copied to clipboard
abstract val token: CancellationToken

A cancellation token.

Functions

Link copied to clipboard
abstract fun waitUntil(thenable: PromiseLike<JsAny?>)

Allows to pause the event until the provided thenable resolves.

abstract fun waitUntil(thenable: PromiseLike<WorkspaceEdit>)

Allows to pause the event and to apply a workspace edit.