Recalculate trust when workspace folders change

This commit is contained in:
Ladislau Szomoru
2021-03-16 16:22:43 +01:00
parent b1359b271c
commit 32406c3f6a
@@ -253,6 +253,7 @@ export class WorkspaceTrustService extends Disposable implements IWorkspaceTrust
this.logInitialWorkspaceTrustInfo();
this._register(this.workspaceService.onDidChangeWorkspaceFolders(() => this.currentTrustState = this.calculateWorkspaceTrustState()));
this._register(this.dataModel.onDidChangeTrustState(() => this.currentTrustState = this.calculateWorkspaceTrustState()));
this._register(this.requestModel.onDidCompleteRequest((trustState) => this.onTrustRequestCompleted(trustState)));
this._register(this.requestModel.onDidCancelRequest(() => this.onTrustRequestCancelled()));