Protected Readonly_ReadonlyonProtected ReadonlyonProtected ReadonlypreferencesProtected ReadonlytrustProtectedtrustedCached trust flag updated via onDidChangeWorkspaceTrust. Defaults to
false (fail closed): until the initial trust state has resolved, reads
return only user/default scope values. Asynchronous callers should
await ready before their first read.
Resolves once the initial workspace trust state has been resolved. Callers that need a deterministic trust state before their first read can await this promise.
Helper for reading AI preferences that must ignore workspace/folder scopes when the current workspace is not trusted.
Writes should continue to go through
PreferenceServicedirectly; trust only affects reads.