mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
More adoption of @extHostNamedCustomer
This commit is contained in:
@@ -5,12 +5,16 @@
|
||||
'use strict';
|
||||
|
||||
import * as errors from 'vs/base/common/errors';
|
||||
import { MainThreadErrorsShape } from '../node/extHost.protocol';
|
||||
import { MainThreadErrorsShape, MainContext } from '../node/extHost.protocol';
|
||||
import { extHostNamedCustomer } from "vs/workbench/api/electron-browser/extHostCustomers";
|
||||
|
||||
@extHostNamedCustomer(MainContext.MainThreadErrors)
|
||||
export class MainThreadErrors implements MainThreadErrorsShape {
|
||||
|
||||
public onUnexpectedExtHostError(err: any): void {
|
||||
errors.onUnexpectedError(err);
|
||||
public dispose(): void {
|
||||
}
|
||||
|
||||
public $onUnexpectedExtHostError(err: any): void {
|
||||
errors.onUnexpectedError(err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user