executeCommand<T> method
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.
Implementation
_i2.Future<_i2.dynamic> executeCommand<T>(
_i2.String command, [
_i2.Iterable<_i2.dynamic>? rest,
]) =>
_i4.promiseToFuture(_i4.callMethod(
this,
'executeCommand',
[
command,
...?rest,
],
));