Remote Sync WorkspaceEdit remote projects as persistent local workspaces in Visual Studio Code. Connect over FTP, explicit FTPS, or SFTP, work in the native Explorer, and synchronize changes with content verification, conflict handling, and private Git history. Features
Requirements
The code supports Windows, macOS, and Linux. Historical verification was performed on Windows; the repository includes a CI matrix for all three operating systems. This extension does not provide a language server. PHP and other language tools can index only files that have been downloaded. InstallUntil the extension is published, build or obtain a VSIX package. In VS Code, open Extensions → … → Install from VSIX… and select it. To build from source, see Development. Connect to a project
Plain FTP transmits credentials and content without encryption. Prefer SFTP or FTPS. Explicit FTPS validates TLS certificates; use the connection's Each connection has a persistent local workspace. The Activity Bar view lists all saved connections, with expandable settings and actions. The compact Remote Sync view in Explorer appears only when a connection is active; its toolbar provides Sync Now, Pause / Resume Upload, and Connection Settings. Download filesWith lazy loading enabled, the first connection downloads root-level files and creates real, initially empty subdirectories. A Right-click a directory in Explorer and choose:
Expanding a folder in the native Explorer cannot trigger a download through VS Code's public API. Use these commands to materialize directories. Interrupted scans are not marked complete. Lazy states are SynchronizationOpen the published file in your browserThe Open Published File in Browser globe button in the editor title maps the current file to your website URL and opens it in the system's default browser. Configure Website URL and Web document root in the connection's expanded Server section, or run Configure Website URL / Web Root. The first browser click also offers this setup if no website URL has been configured. For example, with URL This opens the published server version. The command does not save dirty buffers, upload local changes, or start a PHP server. For applications with custom routing, a physical file path may not correspond to an application route. The browser decides whether to use a new tab or window. This mode does not select or reuse a particular Chrome tab and does not install a Chrome companion extension. Current-file indicator and PHP / HTML splitThe active remote-workspace file has an indicator in the editor title and a colored dot with a label in the status bar. It distinguishes matching content at the last check, local changes (including unsaved edits), remote changes, diverging local/remote content, checking, and a failed check. The tooltip includes the last content-check time. An unreachable server is not shown as synchronized. The current file is checked every 15 seconds, independently of workspace synchronization. Set The Split PHP / HTML in the Same File button in the editor title opens two views of the same document: the PHP beginning on the left and the first Saved files and stable external edits enter the persistent queue independently of remote polling. The watcher waits for 400 ms of stability and applies a 450 ms debounce; active transfers and queued operations can add delay. Uploads use immutable local snapshots. Before uploading, the extension reads remote content and compares it against the last shared SHA-256 baseline. It writes directly to the final remote path, reads the file back in full, and records success only after verification and state persistence. Direct uploads are not atomic. An interrupted upload can leave a partial remote file. Ambiguous operations become Sync Now checks root-level files and materialized directories, refreshes known lazy inventories, and processes the queue even when automatic upload is disabled. An explicit pause remains in effect. Remote polling defaults to 10 minutes and can be disabled or set to 5, 10, 15, or 30 minutes. Reconciliation reads content even when size and timestamps match, which increases bandwidth use. Remote updates do not replace dirty editor documents, divergent local content, or pending local operations. Downloads are completed in private storage before local replacement. A failed listing is never treated as an empty directory. Sessions are reused and serialized, with bounded reconnect attempts. Local files and queued work remain available while the server is offline. New files, directories, renames, moves, and deletions are propagated conservatively. Renames require an unchanged source and an absent destination. Remote directory deletion requires a fully materialized tree, verified files, and empty directories after their children are removed. Lazy directories are never treated as implicit deletions. Native delete/rename hooks try to preserve saved changes before the local operation; external watchers cannot recover bytes they never observed. Cross-workspace moves require conservative reconciliation; unidentifiable external renames are handled as verified create/delete operations. Status and recovery
Select the status bar item or run Operations and Diagnostics to inspect a JSON snapshot of operations, attempts, controlled errors, baselines, and known remote versions. Reopen the command to refresh the snapshot. Show Log opens the dedicated Output Channel. Resolve Conflict offers Compare, Open Three Way Merge, Keep Remote, and Keep Local & Upload. Keeping the remote version preserves the local version first. Keeping the local version authorizes a newly verified baseline before the normal upload checks. Three-way merges use Retry Failed Operations retries safe failures from before a mutation, within the configured limit and after rechecking the baseline. Recover / Abandon Blocked Operation reconciles ambiguous structural operations and permits a retry only when its preconditions are verified. Abandoning an operation does not undo its effects or mark it successful. A blocked operation stops dependent work to preserve order. When recovery is needed, pause uploads, inspect diagnostics and the server, reconnect, run Sync Now, and resolve uncertain files explicitly. Do not delete extension metadata to unblock the queue. History and settingsUse View History / Restore Version to inspect, compare, or restore a file revision. For a deleted file, run the command without an active file and enter its relative path. A deletion commit contains no file bytes; select an earlier revision. Restoring creates a new local change that follows the normal synchronization queue. Git history uses its own repository and index; it does not create a Most Changing the host, port, protocol, username, remote root, or local directory creates a new association and UUID. Previous workspaces, state, and queued content remain available. Deleting a connection removes its configuration and secrets, while preserving local files and history. Overlapping local workspace directories are rejected. State, content blobs, and Git history live under ContributingLicenseMIT. See LICENSE and third-party notices. |