Removed disposeListeners from commandService and only remove listener on MainThreadCommands

This commit is contained in:
Harry Hedger
2019-04-30 03:04:16 -07:00
parent 43e0b18c5b
commit 62f2b712f0
11 changed files with 7 additions and 15 deletions

View File

@@ -114,7 +114,7 @@ export interface MainThreadClipboardShape extends IDisposable {
export interface MainThreadCommandsShape extends IDisposable {
$registerCommand(id: string): void;
$onDidExecuteCommand(): void;
$disposeListeners(): void;
$disposeListener(): void;
$unregisterCommand(id: string): void;
$executeCommand<T>(id: string, args: any[]): Promise<T | undefined>;
$getCommands(): Promise<string[]>;