mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-24 16:35:55 +01:00
Fixing new compile error detected by 2.0 compiler
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user