executeCommandAsync
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
, andnull
, as well as {@linkcode Position}, {@linkcode Range}, {@linkcode Uri} and {@linkcode 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.