From c24aad5bf2dee140f5f3ec22c1d157b2672ad13e Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Tue, 11 May 2021 17:53:22 +0200 Subject: [PATCH] Fix issue with extension enablement --- .../workbench/services/workspaces/common/workspaceTrust.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts index 22935a551d3b6..3f249fa6b320e 100644 --- a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts +++ b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts @@ -166,10 +166,13 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork const trusted = this.calculateWorkspaceTrust(); if (this.isWorkpaceTrusted() === trusted) { return; } + // Update workspace trust + this._isWorkspaceTrusted = trusted; + // Run workspace trust transition participants await this._trustTransitionManager.participate(trusted); - this._isWorkspaceTrusted = trusted; + // Fire workspace trust change event this._onDidChangeTrust.fire(trusted); }