Use native proxies for renderer <-> ext host RPC communication

This commit is contained in:
Alex Dima
2017-08-16 10:21:24 +02:00
parent 159de8236e
commit 2b3298af79
53 changed files with 357 additions and 414 deletions

View File

@@ -11,8 +11,8 @@ import { TPromise } from 'vs/base/common/winjs.base';
import { ExtHostContext, MainThreadCommandsShape, ExtHostCommandsShape, MainContext, IExtHostContext } from '../node/extHost.protocol';
import { extHostNamedCustomer } from "vs/workbench/api/electron-browser/extHostCustomers";
@extHostNamedCustomer<MainThreadCommandsShape>(MainContext.MainThreadCommands)
export class MainThreadCommands extends MainThreadCommandsShape {
@extHostNamedCustomer(MainContext.MainThreadCommands)
export class MainThreadCommands implements MainThreadCommandsShape {
private readonly _disposables = new Map<string, IDisposable>();
private readonly _proxy: ExtHostCommandsShape;
@@ -21,7 +21,6 @@ export class MainThreadCommands extends MainThreadCommandsShape {
extHostContext: IExtHostContext,
@ICommandService private readonly _commandService: ICommandService,
) {
super();
this._proxy = extHostContext.get(ExtHostContext.ExtHostCommands);
}