From e29cbcbedd9586707d46e82a32c553e0a95632da Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 27 Jul 2019 23:02:03 +0300 Subject: it's a good idea to build extension before installing it --- crates/ra_tools/src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_tools/src/main.rs b/crates/ra_tools/src/main.rs index 59d4ea6d3..4fcb2adeb 100644 --- a/crates/ra_tools/src/main.rs +++ b/crates/ra_tools/src/main.rs @@ -27,7 +27,7 @@ fn main() -> Result<()> { .subcommand( SubCommand::with_name("install-ra") .arg(Arg::with_name("server").long("--server")) - .arg(Arg::with_name("jemalloc").long("jemalloc").requires("server")) + .arg(Arg::with_name("jemalloc").long("jemalloc")) .arg(Arg::with_name("client-code").long("client-code").conflicts_with("server")), ) .alias("install-code") @@ -107,6 +107,12 @@ fn fix_path_for_mac() -> Result<()> { fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> { Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?; + Cmd { + unix: r"npm run package", + windows: r"cmd.exe /c npm.cmd run package", + work_dir: "./editors/code", + } + .run()?; let code_in_path = Cmd { unix: r"code --version", -- cgit v1.2.3