mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
debt - less TPromise<any> in extHost.protocol
This commit is contained in:
@@ -54,20 +54,18 @@ export class MainThreadCommands implements MainThreadCommandsShape {
|
||||
});
|
||||
}
|
||||
|
||||
$registerCommand(id: string): TPromise<any> {
|
||||
$registerCommand(id: string): void {
|
||||
this._disposables.set(
|
||||
id,
|
||||
CommandsRegistry.registerCommand(id, (accessor, ...args) => this._proxy.$executeContributedCommand(id, ...args))
|
||||
);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
$unregisterCommand(id: string): TPromise<any> {
|
||||
$unregisterCommand(id: string): void {
|
||||
if (this._disposables.has(id)) {
|
||||
this._disposables.get(id).dispose();
|
||||
this._disposables.delete(id);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
$executeCommand<T>(id: string, args: any[]): Thenable<T> {
|
||||
|
||||
Reference in New Issue
Block a user