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.

One answer decides what agents and tools may do in the folder
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| T

Trust a folder#

  1. 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).
  2. 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.
  3. 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.

FeatureIn a trusted folderIn Restricted Mode
DebuggingEnabledAsks for trust; Cancel means the session does not start.
TasksAllowed to runAsks for trust ("Running the task requires the workspace to be trusted.").
TerminalsCan be createdAsk for trust before they start.
TestsRunAsk for trust.
Agent chatStartsAsks for trust before a session starts in the folder.
Agent edits and commandsFollow your permission modeRefused with a Restricted Mode message, even in a mode that allows everything. Reading and searching still work.
Workspace MCP servers (.vscode/mcp.json)LoadedNot loaded.
ExtensionsAll enabled extensions are activatedExtensions that don't support untrusted workspaces are disabled; others run with limited functionality.
Workspace settingsAll appliedSettings 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.

SettingValuesDefault
security.workspace.trust.enabledtrue, false (false trusts everything without asking)true
security.workspace.trust.startupPromptalways, once, neveronce
security.workspace.trust.banneralways, untilDismissed, neveruntilDismissed
security.workspace.trust.untrustedFilesprompt, open, newWindowprompt
security.workspace.trust.emptyWindowtrue, falsetrue
extensions.supportUntrustedWorkspaces{ "publisher.name": { "supported": true, false or "limited" } }none
terminal.integrated.allowInUntrustedWorkspacetrue, 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.json is loaded even when the folder is untrusted. A chat in that folder still asks for trust first.
Last updated: December 1, 2026Was this page helpful?