Workspace Trust
Workspace Trust asks whether you trust the authors of a folder before IZ Code runs anything from it. Untrusted folders open in Restricted Mode, where you can read and search code safely, and agents cannot change files or run commands until you trust the folder.
Why it matters#
Opening a project can run its code: debug configurations, tasks, terminals, extensions, a workspace's MCP servers, and agents that edit files and run commands. A malicious repository can abuse any of these. Workspace Trust puts one question in front of all of them: Do you trust the authors of the files in this folder?
It works like Workspace Trust in VS Code, and uses the same security.workspace.trust.* settings.
flowchart TD
O([Folder opened]) --> Q{Trust the authors?}
Q -- Yes --> T[Trusted]
Q -- No --> R[Restricted Mode]
T --> A["Agents edit and run commands per permission mode"]
R --> B["Agents read and search only"]
R -->|Trust the folder| TTrust a folder#
- Open the folder When you open a folder you have not trusted yet, IZ Code asks "Do you trust the authors of the files in this folder?" The dialog shows the folder's name, path and where it lives (Local, SSH or Peer).
- Choose Yes, I trust the authors trusts the folder and enables all features. No, I don't trust the authors opens it in Restricted Mode.
- Trust the parent folder (optional) Turn on Trust the authors of all files in the parent folder '…' to trust every folder under it, for example the folder that holds all your own repositories.
A trusted folder trusts all its subfolders. A window is trusted when every folder in it is trusted.
Restricted Mode#
In Restricted Mode, a banner over the editor reads "Restricted Mode is intended for safe code browsing…" with Manage and Learn More, and the status bar shows Restricted Mode. Click either to open the Workspace Trust page.
| Feature | In a trusted folder | In Restricted Mode |
|---|---|---|
| Debugging | Enabled | Asks for trust; Cancel means the session does not start. |
| Tasks | Allowed to run | Asks for trust ("Running the task requires the workspace to be trusted."). |
| Terminals | Can be created | Ask for trust before they start. |
| Tests | Run | Ask for trust. |
| Agent chat | Starts | Asks for trust before a session starts in the folder. |
| Agent edits and commands | Follow your permission mode | Refused with a Restricted Mode message, even in a mode that allows everything. Reading and searching still work. |
Workspace MCP servers (.vscode/mcp.json) | Loaded | Not loaded. |
| Extensions | All enabled extensions are activated | Extensions that don't support untrusted workspaces are disabled; others run with limited functionality. |
| Workspace settings | All applied | Settings that require trust are not applied. |
When a feature asks for trust, the dialog offers Trust Folder & Continue, Manage and Cancel. Trusting continues the action you started.
Manage trust#
Run Workspaces: Manage Workspace Trust from the Command Palette, or click Manage in a trust prompt. The Workspace Trust tab shows:
- the current state, with Trust, Trust Parent and Don't Trust;
- what is enabled In a Trusted Folder and what is disabled In Restricted Mode;
- the extensions that are disabled or limited in Restricted Mode;
- Trusted Folders & Workspaces: every trusted entry with its Host and Path. Use Add Folder, Edit Path and Delete Path to change the list. Entries that make the current folder trusted are shown in bold.
Trust is remembered per computer and per place: the same path on your machine and on an SSH host are separate entries. Folders in your own IZ Code cloud workspaces are always trusted.
Removing trust stops the extensions that need it. IZ Code asks Restart extensions? and reloads the window.
Other prompts#
- Adding an untrusted folder to a trusted window. IZ Code asks "You are adding files that are not currently trusted to a trusted workspace. Do you trust the authors of these new files?" The window stays trusted until you answer. No switches it to Restricted Mode.
- Opening a file from outside the workspace. IZ Code asks whether to Open it, Open in Restricted Mode, or Cancel. Remember my decision for all workspaces stores your answer in
security.workspace.trust.untrustedFiles. - Agent working in a folder. When an agent wants to change files or run commands in a folder that is not trusted, the window that has that folder shows the trust prompt. If you don't answer within five minutes, the request is refused.
Settings#
Run Workspaces: Configure Workspace Trust Settings to open them.
| Setting | Values | Default |
|---|---|---|
security.workspace.trust.enabled | true, false (false trusts everything without asking) | true |
security.workspace.trust.startupPrompt | always, once, never | once |
security.workspace.trust.banner | always, untilDismissed, never | untilDismissed |
security.workspace.trust.untrustedFiles | prompt, open, newWindow | prompt |
security.workspace.trust.emptyWindow | true, false | true |
extensions.supportUntrustedWorkspaces | { "publisher.name": { "supported": true, false or "limited" } } | none |
terminal.integrated.allowInUntrustedWorkspace | true, false (user settings only) | false |
Limits#
- Removing trust reloads the window instead of restarting extensions in place.
- On a remote host, a workspace's
.vscode/mcp.jsonis loaded even when the folder is untrusted. A chat in that folder still asks for trust first.
Related#
What agents may do in a trusted folder.
PermissionsMulti-root workspacesTrust with several folders in one window.
Multi-rootPrivacy and securityHow IZ Code protects your code and sessions.
Security