mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Handle all error by showing message
This commit is contained in:
@@ -9,13 +9,15 @@ import { IThreadService } from 'vs/workbench/services/thread/common/threadServic
|
||||
import { ExtHostContext, MainThreadTreeExplorersShape, ExtHostTreeExplorersShape } from './extHost.protocol';
|
||||
import { ITreeExplorerViewletService } from 'vs/workbench/parts/explorers/browser/treeExplorerViewletService';
|
||||
import { InternalTreeExplorerNode } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel';
|
||||
import { IMessageService, Severity } from 'vs/platform/message/common/message';
|
||||
|
||||
export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
|
||||
private _proxy: ExtHostTreeExplorersShape;
|
||||
|
||||
constructor(
|
||||
@IThreadService threadService: IThreadService,
|
||||
@ITreeExplorerViewletService private treeExplorerService: ITreeExplorerViewletService
|
||||
@ITreeExplorerViewletService private treeExplorerService: ITreeExplorerViewletService,
|
||||
@IMessageService private messageService: IMessageService
|
||||
) {
|
||||
super();
|
||||
|
||||
@@ -35,4 +37,8 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$showMessage(severity: Severity, message: string): void {
|
||||
this.messageService.show(severity, message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user