flathub/com.visualstudio.code

unofficial flatpak version help

Opened this issue · 4 comments

https://www.flathub.org


| Warning: You are running an unofficial Flatpak version of Visual Studio Code !!! |

Please open issues under: https://github.com/flathub/com.visualstudio.code/issues

This version is running inside a container and is therefore not able
to access SDKs on your host system!

To execute commands on the host system, run inside the sandbox:

$ flatpak-spawn --host

To make the Integrated Terminal automatically use the host system's shell,
you can add this to the settings:

{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
}
}
}

This flatpak provides a standard development environment (gcc, python, etc).
To see what's available:

$ flatpak run --command=sh com.visualstudio.code
$ ls /usr/bin (shared runtime)
$ ls /app/bin (bundled with this flatpak)

To get 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

You can use

$ flatpak search

to find others.

I got this too. I installed VSCode through the Pop!_OS store with the flathub option:

image

This is intentional as the Flatpak is not maintained by Microsoft. This is just a warning file that opens the first time you open it to explain some potential drawbacks inherent to Flatpaking VS Code and how to work around them.

Thank you for letting me know. im still learning so any help or info help out big time thank you

I got this too. I installed VSCode through the Pop!_OS store with the flathub option:

image

I'm using Pop_os too
But I'm new to linux.
Can you tell me where should I put the '$ flatpak-spawn --host' line?
I've tried in the terminal but I got an error :(