Skip to content

feat: support client-side fallback mode with WS reconnect for LSP recovery #1025

@ls-infra

Description

@ls-infra

Hi team,

Is there any configuration or built-in mechanism to make the WebSocket (WS) connection optional?

Ideally, when the WS connection is unavailable or temporarily down, the editor could continue functioning in a client-side–only mode (without LSP features). For example, libraries like ngx-monaco-editor allow Monaco to run purely on the client side without requiring a persistent WS connection.

Once the WS connection is restored, it could automatically reconnect and resume LSP features such as diagnostics and code compilation.

This would improve resilience and ensure the editor remains usable even when the WS backend is temporarily unavailable.

If this is not currently supported, I’d be happy to contribute a PR if you could provide some guidance on the recommended approach or design direction.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions