flathub / com.visualstudio.code

https://flathub.org/apps/details/com.visualstudio.code
150 stars 69 forks source link

add Rust support #116

Open ranfdev opened 5 years ago

ranfdev commented 5 years ago

There is the org.freedesktop.Sdk.Extension.rust-stable flatpak, but there is no support in the visual studio code flatpak. Is it possible to add it?

stobbsm commented 5 years ago

Once you have it installed, rust still isn't in your path.

It's directory (haven't actually looked) should be /usr/lib/sdk/rust

I've taken to overriding my $PATH for the flatpak, to enable all the SDK's I've installed without other work arounds.

ricvelozo commented 4 years ago

The rustup installs Rust in home directory, so this Flatpak already works with Rust. Also, if that SDK extension is used, the official VS Code extension may conflict.

adrm commented 3 years ago

Maybe my use case is not well supported or not supported at all, but I am running this flatpak in Fedora Silverblue so my Rust tooling, which is needed by the Rust extension, is inside a container which I access through toolbox enter, since it is the recommended workflow for development in Silverblue.

Is there some way to make a toolbox environment to VSCode flatpak so that the Rust extension can work?

ricvelozo commented 3 years ago

Maybe my use case is not well supported or not supported at all, but I am running this flatpak in Fedora Silverblue so my Rust tooling, which is needed by the Rust extension, is inside a container which I access through toolbox enter, since it is the recommended workflow for development in Silverblue.

Is there some way to make a toolbox environment to VSCode flatpak so that the Rust extension can work?

VS Code supports Docker & Podman containers, so you can configure a container using the official images.

I haven't tested the containers with this Flatpak version, though.

jokeyrhyme commented 3 years ago

After installing this flatpak, I run: flatpak override --user --filesystem=~/.cargo:create com.visualstudio.code

And then I manually configure the Rust extension to use ~/.cargo/bin/rustup

00pandora00 commented 11 months ago

any update in this?