From bbd9013bca0e27788f293f429e30b0b90f393a34 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 10 Feb 2020 10:53:31 +0100 Subject: Add note --- xtask/src/install.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xtask/src/install.rs b/xtask/src/install.rs index 8c65b51e3..0e7cda3fa 100644 --- a/xtask/src/install.rs +++ b/xtask/src/install.rs @@ -24,6 +24,7 @@ pub struct ServerOpt { impl InstallCmd { pub fn run(self) -> Result<()> { + let both = self.server.is_some() && self.client.is_some(); if cfg!(target_os = "macos") { fix_path_for_mac().context("Fix path for mac")? } @@ -33,6 +34,16 @@ impl InstallCmd { if let Some(client) = self.client { install_client(client).context("install client")?; } + if both { + eprintln!( + " + Installation complete. + + Add `\"rust-analyzer.raLspServerPath\": \"ra_lsp_server\",` to VS Code settings, + otherwise it will use the latest release from GitHub. +" + ) + } Ok(()) } } -- cgit v1.2.3