eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.29k stars 2.45k forks source link

fix: load correct messaging module in browser-only #13827

Closed sdirix closed 2 weeks ago

sdirix commented 2 weeks ago

What it does

The frontend generator erroneously included the Electron messaging module instead of the browser messaging module. Consequently, the browser-only environment attempted to establish a WebSocket connection to the backend. This issue has now been resolved.

Fixes #13820

How to test

Build and start the browser-only example without the fix. Observe that the frontend tries to create a Websocket connection to the backend. You can do this by checking the frontend logs and/or server logs.

With the fix the issue is gone.

Follow-ups

Review checklist

Reminder for reviewers