mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Use native proxies for renderer <-> ext host RPC communication
This commit is contained in:
@@ -12,7 +12,7 @@ import { ExtHostContext, ExtHostDebugServiceShape, MainThreadDebugServiceShape,
|
||||
import { extHostNamedCustomer } from "vs/workbench/api/electron-browser/extHostCustomers";
|
||||
|
||||
@extHostNamedCustomer<MainThreadDebugServiceShape>(MainContext.MainThreadDebugService)
|
||||
export class MainThreadDebugService extends MainThreadDebugServiceShape {
|
||||
export class MainThreadDebugService implements MainThreadDebugServiceShape {
|
||||
|
||||
private _proxy: ExtHostDebugServiceShape;
|
||||
private _toDispose: IDisposable[];
|
||||
@@ -21,8 +21,6 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape {
|
||||
extHostContext: IExtHostContext,
|
||||
@IDebugService private debugService: IDebugService
|
||||
) {
|
||||
super();
|
||||
|
||||
this._proxy = extHostContext.get(ExtHostContext.ExtHostDebugService);
|
||||
this._toDispose = [];
|
||||
this._toDispose.push(debugService.onDidNewProcess(proc => this._proxy.$acceptDebugSessionStarted(<DebugSessionUUID>proc.getId(), proc.configuration.type, proc.getName(false))));
|
||||
|
||||
Reference in New Issue
Block a user