/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/import{IMainContext}from'vs/workbench/api/common/extHost.protocol';import{ProxyIdentifier}from'vs/workbench/services/extensions/common/proxyIdentifier';import{createDecorator}from'vs/platform/instantiation/common/instantiation';exportconstIExtHostRpcService=createDecorator<IExtHostRpcService>('IExtHostRpcService');exportinterfaceIExtHostRpcService{_serviceBrand:any;getProxy<T>(identifier:ProxyIdentifier<T>):T;}exportclassExtHostRpcServiceimplementsIExtHostRpcService{readonly_serviceBrand:any;constructor(privatereadonly_mainContext:IMainContext){}getProxy<T>(identifier:ProxyIdentifier<T>):T{returnthis._mainContext.getProxy(identifier);}}