VS Code Extension 2026.x — Files No Longer Written to Disk (VFS Change Breaks AI Tool Integration)
Environment
Description
After updating the VS Code extension from 5.6.x to 2026.2.x we noticed a breaking change in how script files are handled locally.
Previous behavior (≤5.6.x): The extension fetched scripts from the PSU server via REST API and wrote them as real files to: %AppData%\Local\Temp\.universal.code.script\
This allowed external tools (file watchers, AI coding assistants, search tools) to discover, read, and update the files on disk.
Current behavior (2026.x): The extension now uses VS Code's Virtual File System (VFS) API. Files are served in-memory and are never written to disk. The temp folder is no longer populated.
Impact
This change breaks the integration with AI coding assistants such as Claude Code (and likely GitHub Copilot Workspace, Cursor, etc.). These tools rely on real file paths to:
With the VFS approach, the AI tool cannot find the files, cannot read them, and cannot apply suggested edits directly — the round-trip has to go through manual copy-paste.
Additionally, the previous workflow of "edit in VS Code → test on DEV server" was instant. With VFS-only files, any change now requires an additional Git sync cycle to get the file onto the DEV server, which significantly increases iteration time.
Request / Question
Hello ivoruss,
Thank you for the detailed write-up, and for clearly outlining the difference in behavior between the 5.6.x and 2026.x extensions.
You are correct: starting with the 2026.x extension, scripts are served through VS Code's Virtual File System rather than being written to the local temp folder (%LocalAppData%\Temp.universal.code.script). This was an intentional architectural change, and the previous temp-file caching, along with the older "Local Editing" option, is no longer present.
Below are detailed answers and step-by-step guidance for each of your three questions.
There is currently no setting in the 2026.x extension that restores writing scripts to a local temp directory.
That folder was an internal cache tied to the previous editing model, which the Virtual File System replaced. You do not need that cache, however, because PowerShell Universal already keeps your scripts as real files on disk in its repository folder, which the patterns below use directly.
First, locate your repository folder:
Option A - Git two-way sync (recommended for the "edit locally, run on DEV" workflow):
Option B - Direct repository editing (only when PowerShell Universal runs locally, under the same account as your editor):
For most remote DEV scenarios, Option A (Git) is the cleanest and avoids the file-permission considerations entirely.
This is a reasonable enhancement request, and I have shared it with our product team for consideration. I cannot commit to a timeline, but the feedback is recorded. In the meantime, the repository folder combined with Git two-way sync (Option A above) provides the same "real files on disk" capability that your external tools rely on.
Relevant documentation:
If you would like, let me know your DEV setup (whether the server runs locally or remotely, and under which account), and I can tailor the exact steps to your environment.
Best regards,
Patrick Ouimet