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!
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!