You can use this to fix the default FlatPack VSCode of 42 schools packet manager. This also download a version of portable edition of VSCode.
After reseting your session (touch ~/.reset).
Open the default installed VSCode, then close it (just to generate the settings.json file of VSCode).
Execute in a terminal
bash script-installer.sh
zsh will be installed so you have to relaunch the script a second time after installation
Then go on you desktop and right click on the code.dekstop and select allow launching.