mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Disallow importing workbench/api in workbench/services (fixes #141003)
This commit is contained in:
@@ -44,10 +44,13 @@ export class MainThreadExtensionService implements MainThreadExtensionServiceSha
|
||||
@IWorkbenchEnvironmentService protected readonly _environmentService: IWorkbenchEnvironmentService,
|
||||
) {
|
||||
this._extensionHostKind = extHostContext.extensionHostKind;
|
||||
this._internalExtensionService = (<IInternalExtHostContext>extHostContext).internalExtensionService;
|
||||
(<IInternalExtHostContext>extHostContext)._setExtensionHostProxy(
|
||||
|
||||
const internalExtHostContext = (<IInternalExtHostContext>extHostContext);
|
||||
this._internalExtensionService = internalExtHostContext.internalExtensionService;
|
||||
internalExtHostContext._setExtensionHostProxy(
|
||||
new ExtensionHostProxy(extHostContext.getProxy(ExtHostContext.ExtHostExtensionService))
|
||||
);
|
||||
internalExtHostContext._setAllMainProxyIdentifiers(Object.keys(MainContext).map((key) => (<any>MainContext)[key]));
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
|
||||
Reference in New Issue
Block a user