mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
debt - remove unused code
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user