Recalculate trust when workspace folders change

pull/119092/head^2
Ladislau Szomoru 2021-03-16 16:22:43 +01:00
parent b1359b271c
commit 32406c3f6a
No known key found for this signature in database
GPG Key ID: 2B88287CB9DB080B
1 changed files with 1 additions and 0 deletions

View File

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