🚨 Warning: This is an unofficial Flatpak build of Visual Studio Code, generated from the official Microsoft-built .deb packages here.
Most functionality works out of the box, though please note that flatpak runs in an isolated environment and some work is necessary to enable those features.
To execute commands on the host system, run inside the sandbox:
$ flatpak-spawn --host <COMMAND>
Another option to execute commands is to use your host shell in the integrated terminal instead of the sandbox one.
For that go to File -> Preferences -> Settings
and find Terminal > Integrated > Profiles
, then click on Edit in settings.json
(The important thing here is to open settings.json)
And make sure that you have the following lines there
{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
}
}
}
- You can change bash to any terminal you are using: zsh, fish, sh.
Some Visual Studio extension depends on packages that might exist on your host, but they are not accessible thought Flatpak. Like support to programming languages: gcc, python, etc..
See available SDK:
flatpak run --command=sh com.visualstudio.code
ls /usr/bin (shared runtime)
ls /app/bin (bundled with this flatpak)
Getting support for additional languages, you have to install SDK extensions, e.g.
flatpak install flathub org.freedesktop.Sdk.Extension.dotnet
flatpak install flathub org.freedesktop.Sdk.Extension.golang
FLATPAK_ENABLE_SDK_EXT=dotnet,golang flatpak run com.visualstudio.code
Finding other SDK
flatpak search <TEXT>
Please open issues under: https://github.com/flathub/com.visualstudio.code/issues