Optional ReadonlypreferenceThe preference key that changed. When the change is caused by a workspace-trust transition
(which can change the effective value of any trust-gated key) this is undefined and
affects returns true for every resource. Listeners tracking a specific key should
re-query the value when preferenceName is undefined or equals their key.
Tests whether the given resource is affected by the change.
OptionalresourceUri: stringthe uri of the resource to test.
Tests whether the given preference key is affected by this change, treating a workspace-trust
transition (where preferenceName is undefined) as affecting every trust-gated key.
Prefer this over comparing preferenceName directly so listeners do not silently miss
trust transitions.
the preference key to test.
Payload of AiConfigurationService.onDidChange.