When running the VSCode workspace, it fails to run the vscode app.
The reason was found on the container logs:
Do you want to continue anyway? [y/N] To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use thecodecommand in a WSL terminal just as you would in a normal command prompt.
This happens because KASM is installed on a WSL environment, and the kernel name (uname -r) propagates inside the containers, and vscode thinks it is being called on WSL.
Proposal to fix it:
add on workspace configuration (Docker Run Config Override (JSON)) the following:
When running the VSCode workspace, it fails to run the vscode app.
The reason was found on the container logs:
Do you want to continue anyway? [y/N] To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the
codecommand in a WSL terminal just as you would in a normal command prompt.
This happens because KASM is installed on a WSL environment, and the kernel name (uname -r) propagates inside the containers, and vscode thinks it is being called on WSL.
Proposal to fix it:
add on workspace configuration (Docker Run Config Override (JSON)) the following:
Best regards.