There is an issue for this upstream: https://github.com/microsoft/vscode/issues/110119
Running code --verbose --log debug --disable-gpu
prints, among others:
[3440:1116/110926.098706:WARNING:x11_util.cc(1520)] X error received: serial 169, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 1 (X_ShmAttach)
[3440:1116/110926.129228:WARNING:x11_util.cc(1520)] X error received: serial 170, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 1 (X_ShmAttach)
[3440:1116/110926.170878:WARNING:x11_util.cc(1520)] X error received: serial 171, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 3 (X_ShmPutImage)
[3440:1116/110926.204224:WARNING:x11_util.cc(1520)] X error received: serial 172, error_code 1 (BadRequest (invalid request code or no such operation)), request_code 130, minor_code 3 (X_ShmPutImage)
I don't know much about X, but I would expect X shared memory (shm) to not work via X forwarding, and maybe it's something that vscode currently needs?
code
with no args. – Jahdiel