We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0bc15f commit bcdfe88Copy full SHA for bcdfe88
src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts
@@ -515,7 +515,10 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
515
disposable.dispose();
516
}
517
}));
518
- this.workspaceTrustManagementService.setWorkspaceTrust(this.configurationService.getValue<boolean>(WORKSPACE_TRUST_EMPTY_WINDOW) ?? false);
+ // TODO: Consider moving the check into setWorkspaceTrust()
519
+ if (this.workspaceTrustManagementService.canSetWorkspaceTrust()) {
520
+ this.workspaceTrustManagementService.setWorkspaceTrust(this.configurationService.getValue<boolean>(WORKSPACE_TRUST_EMPTY_WINDOW) ?? false);
521
+ }
522
523
524
0 commit comments