Open chrisguida opened 12 months ago
You can already do this just as with any other extension installation. Go to the "Extension Marketplace" and enable the rust-analyzer extension. It will auto-detect NixOS and make the appropriate adjustments.
Hmm, this definitely didn't work when I tested. Is this a new feature?
@chrisguida in your configuration.nix
environment.systemPackages = with pkgs; [
vscode-extensions.rust-lang.rust-analyzer
];
@N-T-K thanks, that seems to have gotten me partly there
I now have this:
2024-04-25T19:19:36.599526Z ERROR rust_analyzer::main_loop: FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to load the project at /home/cguida/work/smaug/Cargo.toml: Failed to query rust toolchain version at /home/cguida/work/smaug, is your toolchain setup correctly?: cd "/home/cguida/work/smaug" && "cargo" "--version" failed: No such file or directory (os error 2)
cargo
doesn't exist because it's inside nix develop
. how can i fix this?
How can I add extensions to vscode-server such as rust-analyzer?
This would be amazing as I would be able to use rust-analyzer while coding on a remote machine.