executeCommandAsync

fun <T : JsAny?> executeCommandAsync(command: String, vararg rest: JsAny?): PromiseLike<T>(source)

Executes the command denoted by the given command identifier.

  • Note 1: When executing an editor command not all types are allowed to be passed as arguments. Allowed are the primitive types string, boolean, number, undefined, and null, as well as Position, Range, Uri and Location.

  • Note 2: There are no restrictions when executing commands that have been contributed by extensions.

Parameters

command

Identifier of the command to execute.

rest

Parameters passed to the command function.