diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 3798e699115..55bdfe5014f 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -144,7 +144,7 @@ export class ExtHostAPIImplementation { const extHostCommands = this._threadService.getRemotable(ExtHostCommands); const extHostEditors = this._threadService.getRemotable(ExtHostEditors); - const extHostMessageService = new ExtHostMessageService(this._threadService, this.commands); + const extHostMessageService = new ExtHostMessageService(this._threadService); const extHostQuickOpen = this._threadService.getRemotable(ExtHostQuickOpen); const extHostStatusBar = new ExtHostStatusBar(this._threadService); const extHostOutputService = new ExtHostOutputService(this._threadService); diff --git a/src/vs/workbench/api/node/extHostMessageService.ts b/src/vs/workbench/api/node/extHostMessageService.ts index 56314c8f57f..66fefacbca0 100644 --- a/src/vs/workbench/api/node/extHostMessageService.ts +++ b/src/vs/workbench/api/node/extHostMessageService.ts @@ -15,11 +15,9 @@ import vscode = require('vscode'); export class ExtHostMessageService { private _proxy: MainThreadMessageService; - private _commands: typeof vscode.commands; - constructor(@IThreadService threadService: IThreadService, commands: typeof vscode.commands) { + constructor(@IThreadService threadService: IThreadService) { this._proxy = threadService.getRemotable(MainThreadMessageService); - this._commands = commands; } showMessage(severity: Severity, message: string, commands: (string|vscode.MessageItem)[]): Thenable { @@ -35,7 +33,7 @@ export class ExtHostMessageService { } } - return this._proxy.showMessage(severity, message, items).then(handle => { + return this._proxy.$showMessage(severity, message, items).then(handle => { if (typeof handle === 'number') { return commands[handle]; } @@ -52,7 +50,7 @@ export class MainThreadMessageService { this._messageService = messageService; } - showMessage(severity: Severity, message: string, commands: { title: string; handle: number;}[]): Thenable { + $showMessage(severity: Severity, message: string, commands: { title: string; handle: number;}[]): Thenable { let hide: (handle?: number) => void; let actions: Action[] = [];