提交 323d5ea3 编写于 作者: J Johannes Rieken

debt - remove unused code

上级 c67948e5
......@@ -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);
......
......@@ -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<string|vscode.MessageItem> {
......@@ -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<number> {
$showMessage(severity: Severity, message: string, commands: { title: string; handle: number;}[]): Thenable<number> {
let hide: (handle?: number) => void;
let actions: Action[] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册