Skip to content

Commit

Permalink
fix: Enable workspace trust (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Dec 30, 2023
1 parent f5f02a2 commit 15fe163
Show file tree
Hide file tree
Showing 16 changed files with 281 additions and 141 deletions.
44 changes: 37 additions & 7 deletions docs/_includes/generated-docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1749,13 +1749,14 @@ Version

# Advanced

| Setting | Scope | Description |
| ---------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------ |
| [`cSpell.advanced.feature.useReferenceProviderRemove`](#cspelladvancedfeatureusereferenceproviderremove) | language-overridable | Remove Matching Characters Before Rename |
| [`cSpell.advanced.feature.useReferenceProviderWithRename`](#cspelladvancedfeatureusereferenceproviderwithrename) | language-overridable | Use Reference Provider During Rename |
| [`cSpell.fixSpellingWithRenameProvider`](#cspellfixspellingwithrenameprovider) | language-overridable | Use Rename Provider when fixing spelling issues. |
| [`cSpell.logFile`](#cspelllogfile) | window | Write Logs to a File |
| [`cSpell.logLevel`](#cspellloglevel) | window | Set Logging Level |
| Setting | Scope | Description |
| ---------------------------------------------------------------------------------------------------------------- | -------------------- | ----------------------------------------------------- |
| [`cSpell.advanced.feature.useReferenceProviderRemove`](#cspelladvancedfeatureusereferenceproviderremove) | language-overridable | Remove Matching Characters Before Rename |
| [`cSpell.advanced.feature.useReferenceProviderWithRename`](#cspelladvancedfeatureusereferenceproviderwithrename) | language-overridable | Use Reference Provider During Rename |
| [`cSpell.fixSpellingWithRenameProvider`](#cspellfixspellingwithrenameprovider) | language-overridable | Use Rename Provider when fixing spelling issues. |
| [`cSpell.logFile`](#cspelllogfile) | window | Write Logs to a File |
| [`cSpell.logLevel`](#cspellloglevel) | window | Set Logging Level |
| [`cSpell.trustedWorkspace`](#cspelltrustedworkspace) | window | Enable loading JavaScript CSpell configuration files. |

## Definitions

Expand Down Expand Up @@ -1870,6 +1871,35 @@ Default

---

### `cSpell.trustedWorkspace`

Name
: `cSpell.trustedWorkspace`

Type
: boolean

Scope
: window

Description
: Enable loading JavaScript CSpell configuration files.

This setting is automatically set to `true` in a trusted workspace. It is possible to override the setting to `false` in a trusted workspace,
but a setting of `true` in an untrusted workspace will be ignored.

See:
- [Visual Studio Code Workspace Trust security](https://code.visualstudio.com/docs/editor/workspace-trust)
- [Workspace Trust Extension Guide -- Visual Studio Code Extension API](https://code.visualstudio.com/api/extension-guides/workspace-trust)

Default
: _`true`_

Version
: 4.0.0

---

# Experimental

| Setting | Scope | Description |
Expand Down
Loading

0 comments on commit 15fe163

Please sign in to comment.