Native policy watcher is not given full set of definitions (#245003)

wrong policyDefinitions
This commit is contained in:
Josh Spicer 2025-03-28 15:39:01 -04:00 committed by GitHub
parent 82839a3b65
commit 751f923b26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export abstract class AbstractPolicyService extends Disposable implements IPolic
this.policyDefinitions = { ...policyDefinitions, ...this.policyDefinitions };
if (size !== Object.keys(this.policyDefinitions).length) {
await this._updatePolicyDefinitions(policyDefinitions);
await this._updatePolicyDefinitions(this.policyDefinitions);
}
return Iterable.reduce(this.policies.entries(), (r, [name, value]) => ({ ...r, [name]: value }), {});