Explicitly specify extensions to include rust-analysis

And change VSCode extension
This commit is contained in:
Sridhar Ratnakumar 2021-04-06 23:42:32 -04:00
parent afec3ca7c8
commit b767bad490
2 changed files with 21 additions and 5 deletions

5
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"recommendations": [
"matklad.rust-analyzer"
]
}

View file

@ -16,11 +16,22 @@
(system:
let pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlay ];
}; in {
overlays = [ rust-overlay.overlay ];
}; in
{
devShell = pkgs.mkShell {
nativeBuildInputs = [
pkgs.rust-bin.stable.latest.default
(pkgs.rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"cargo"
"rustc"
"rls"
"rust-analysis"
"rustfmt"
"clippy"
];
})
];
};
}