Skip to main content

Interface: WorkspaceTrustSettings

Defined in: CSpellSettingsDef.ts:421

To prevent the unwanted execution of untrusted code, WorkspaceTrustSettings are use to set the trust levels.

Trust setting have an impact on both cspell.config.js files and on .pnp.js files. In an untrusted location, these files will NOT be used.

This will also prevent any associated plugins from being loaded.

Properties

trustedFiles?

optional trustedFiles: Glob[]

Defined in: CSpellSettingsDef.ts:425

Glob patterns of locations that contain ALWAYS trusted files.


trustLevel?

optional trustLevel: TrustLevel

Defined in: CSpellSettingsDef.ts:436

Sets the default trust level.

Default

"trusted"

untrustedFiles?

optional untrustedFiles: Glob[]

Defined in: CSpellSettingsDef.ts:430

Glob patterns of locations that contain NEVER trusted files.