mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Recalculate trust when workspace folders change
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user