Fix issue with extension enablement

This commit is contained in:
Ladislau Szomoru 2021-05-11 17:53:22 +02:00
parent 86bc05155f
commit c24aad5bf2
No known key found for this signature in database
GPG Key ID: 2B88287CB9DB080B

View File

@ -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);
}