diff --git a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts index 22935a551d3..3f249fa6b32 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); }