From 8d42deeac354d1f8297d6c4d52b2707fb8d7a771 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 17 Dec 2018 11:26:41 +0300 Subject: [PATCH] fix installation on windows --- crates/tools/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index 9e90ac5c21b..8e5e2036d6d 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs @@ -129,10 +129,11 @@ fn install_code_extension() -> Result<()> { run("cargo install --path crates/ra_lsp_server --force", ".")?; if cfg!(windows) { run(r"cmd.exe /c npm.cmd install", "./editors/code")?; + run(r"cmd.exe /c npm.cmd run package", "./editors/code")?; } else { run(r"npm install", "./editors/code")?; + run(r"npm run package", "./editors/code")?; } - run(r"npm run package", "./editors/code")?; if cfg!(windows) { run( r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix",