Fixing new compile error detected by 2.0 compiler

This commit is contained in:
Dirk Baeumer
2016-09-22 16:38:53 +02:00
parent 7a560086bf
commit f64813174a
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import Event, { buffer } from 'vs/base/common/event';
export interface IWindowsChannel extends IChannel {
call(command: 'event:onNewWindowOpen'): TPromise<number>;
call(command: 'event:onWindowFocus'): TPromise<number>;
call(command: string, arg: any): any;
call(command: string, arg?: any): any;
}
export class WindowsChannel implements IWindowsChannel {
@@ -26,7 +26,7 @@ export class WindowsChannel implements IWindowsChannel {
this.onWindowFocus = buffer(service.onWindowFocus, true);
}
call(command: string, args: any): any {
call(command: string, args?: any): any {
switch (command) {
case 'event:onNewWindowOpen':
return eventToCall(this.onNewWindowOpen);