Skip to content

[vscode-server-web] Add --enable-remote-storage option to persist browser state on server #288878

Description

Feature Request

Add a --enable-remote-storage CLI option to persist VS Code Web browser state (settings, UI state, layout, etc.) on the server instead of browser IndexedDB.

Problem

When using vscode-server-web, all user state (settings, open editors, UI layout, extension state) is stored in the browser's IndexedDB. This causes several issues:

  1. No state portability - Switching browsers/devices requires reconfiguring everything
  2. State loss - Clearing browser data or using private browsing loses all state
  3. No seeding - Cannot pre-configure initial state like in desktop VS Code
  4. Volatile storage - Some devices (tablets, thin clients) have non-persistent storage

This was previously requested in #210775 but closed due to insufficient upvotes. However, the need remains strong in the community (see coder/code-server#4212 with many participants).

Solution

Add an opt-in --enable-remote-storage flag that:

  • Persists browser storage on the server using SQLite (same as Electron desktop)
  • Enables state portability across browsers and devices
  • Allows administrators to seed initial state
  • Is disabled by default to preserve current behavior

API

CLI:

./bin/code-server --enable-remote-storage

Programmatic (via IWorkbenchConstructionOptions):

remoteStorageEnabled: true

Implementation
I have a working implementation ready as a PR:

  • Adds ServerStorageMainService for server-side SQLite storage
  • Adds ServerStorageDatabaseChannel for storage IPC
  • Adds RemoteBrowserStorageService for the web client
  • Moves shared storage classes to vs/platform/storage/node
  • Adds @vscode/sqlite3 dependency to remote package

The implementation follows the same pattern as NativeWorkbenchStorageService used by Electron, adapted for the server environment.

Use Cases
Multi-device workflows - Continue work seamlessly across laptop, desktop, tablet
Shared development environments - Pre-configured dev containers with consistent settings
Education/labs - Administrators can seed settings for students
Thin clients - Devices with volatile/read-only storage can maintain state
AI coding assistants - Extensions like Cline/Kilo maintain conversation state across devices

References
Previous request: #210775
code-server tracking issue: coder/code-server#4212

Activity

  1. added
    stale
    on Jan 26, 2026
  2. removed
    stale
    on Feb 2, 2026
  3. added
    feature-request
    web
    on Feb 2, 2026
  4. vs-code-engineering commented on Feb 2, 2026

    @vs-code-engineering
    Contributor

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. vs-code-engineering commented on Feb 14, 2026

    @vs-code-engineering
    Contributor

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestweb

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions