From 8cebb9a5c9c77874c75ff3b3f33dc38d999c96a6 Mon Sep 17 00:00:00 2001 From: misakajimmy <40244979+misakajimmy@users.noreply.github.com> Date: Fri, 20 Aug 2021 19:52:39 +0800 Subject: [PATCH] Use correct host id for front-end plugins (#9902) --- packages/plugin-ext/src/hosted/browser/hosted-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts b/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts index bb4ebdc785f8e..1ed845ff3c056 100644 --- a/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts +++ b/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts @@ -363,7 +363,7 @@ export class HostedPluginSupport { if (contributions.state === PluginContributions.State.LOADED) { contributions.state = PluginContributions.State.STARTING; const host = plugin.model.entryPoint.frontend ? 'frontend' : plugin.host; - const dynamicContributions = hostContributions.get(plugin.host) || []; + const dynamicContributions = hostContributions.get(host) || []; dynamicContributions.push(contributions); hostContributions.set(host, dynamicContributions); toDisconnect.push(Disposable.create(() => {