Since I installed vscode as "Flatpak" application, it has restricted access to the file system. I uninstalled and installed the .deb package from https://code.visualstudio.com. This installation has access to the /usr/local folder.