WebIDE and VS Code server version mismatch
VS Code is very particular about the server and client versions in production mode. It makes sense because the client and server protocol has to match for successful communication.
When we use https://github.com/VSCodium/vscodium release, it has got a commit
hardcoded in the release. This commit is the commit from which the server has been built.
The client (our WebIDE) also has a commit from which it has been built.
These commits don't match because we chose to fork the VS Code (gitlab-web-ide#12 (closed)).
Even though we don't change the protocol, we break the version check.
Temporary workaround
Before we fix this, I suggest we remove the hardcoded commit from the server release (after we unpack it on the host machine). That way the version check doesn't happen and we can connect WebIDE to the server.
If we unpack the VS Codium release (e.g. vscodium-reh-darwin-arm64-1.69.1
on my machine), we can find product.json
in the root of this archive. We can simply remove the "commit": "..."
property to ignore any version mismatch.
Proper solution
I'm not sure. One option would be building our server packages instead of using VS Codium.