mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
Fix issue with extension enablement
This commit is contained in:
parent
86bc05155f
commit
c24aad5bf2
|
@ -166,10 +166,13 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
||||||
const trusted = this.calculateWorkspaceTrust();
|
const trusted = this.calculateWorkspaceTrust();
|
||||||
if (this.isWorkpaceTrusted() === trusted) { return; }
|
if (this.isWorkpaceTrusted() === trusted) { return; }
|
||||||
|
|
||||||
|
// Update workspace trust
|
||||||
|
this._isWorkspaceTrusted = trusted;
|
||||||
|
|
||||||
// Run workspace trust transition participants
|
// Run workspace trust transition participants
|
||||||
await this._trustTransitionManager.participate(trusted);
|
await this._trustTransitionManager.participate(trusted);
|
||||||
|
|
||||||
this._isWorkspaceTrusted = trusted;
|
// Fire workspace trust change event
|
||||||
this._onDidChangeTrust.fire(trusted);
|
this._onDidChangeTrust.fire(trusted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue