Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
main/browser/command-registry-main
CommandRegistryMainImpl
Class CommandRegistryMainImpl
Implements
CommandRegistryMain
Disposable
Index
Constructors
constructor
Properties
to
Dispose
Methods
$execute
Command
$get
Commands
$get
Key
Binding
$register
Command
$register
Handler
$unregister
Command
$unregister
Handler
dispose
register
Argument
Processor
Constructors
constructor
new
CommandRegistryMainImpl
(
rpc
:
RPCProtocol
,
container
:
Container
,
)
:
CommandRegistryMainImpl
Parameters
rpc
:
RPCProtocol
container
:
Container
Returns
CommandRegistryMainImpl
Properties
Protected
Readonly
to
Dispose
toDispose
:
DisposableCollection
= ...
Methods
$execute
Command
$executeCommand
<
T
>
(
id
:
string
,
...
args
:
any
[]
)
:
Promise
<
undefined
|
T
>
eslint-disable-next-line @typescript-eslint/no-explicit-any
Type Parameters
T
Parameters
id
:
string
...
args
:
any
[]
Returns
Promise
<
undefined
|
T
>
$get
Commands
$getCommands
()
:
PromiseLike
<
string
[]
>
Returns
PromiseLike
<
string
[]
>
$get
Key
Binding
$getKeyBinding
(
commandId
:
string
)
:
PromiseLike
<
undefined
|
CommandKeyBinding
[]
>
Parameters
commandId
:
string
Returns
PromiseLike
<
undefined
|
CommandKeyBinding
[]
>
$register
Command
$registerCommand
(
command
:
CommandDescription
)
:
void
Parameters
command
:
CommandDescription
Returns
void
$register
Handler
$registerHandler
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
$unregister
Command
$unregisterCommand
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
$unregister
Handler
$unregisterHandler
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
dispose
dispose
()
:
void
Dispose this object.
Returns
void
register
Argument
Processor
registerArgumentProcessor
(
processor
:
ArgumentProcessor
)
:
Disposable
Parameters
processor
:
ArgumentProcessor
Returns
Disposable
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
to
Dispose
Methods
$execute
Command
$get
Commands
$get
Key
Binding
$register
Command
$register
Handler
$unregister
Command
$unregister
Handler
dispose
register
Argument
Processor
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...
eslint-disable-next-line @typescript-eslint/no-explicit-any