Skip to content

Commit 33df947

Browse files
bors[bot]matklad
andauthored
Merge #3079
3079: Add note r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
2 parents b4ac3dd + bbd9013 commit 33df947

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

xtask/src/install.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub struct ServerOpt {
2424

2525
impl InstallCmd {
2626
pub fn run(self) -> Result<()> {
27+
let both = self.server.is_some() && self.client.is_some();
2728
if cfg!(target_os = "macos") {
2829
fix_path_for_mac().context("Fix path for mac")?
2930
}
@@ -33,6 +34,16 @@ impl InstallCmd {
3334
if let Some(client) = self.client {
3435
install_client(client).context("install client")?;
3536
}
37+
if both {
38+
eprintln!(
39+
"
40+
Installation complete.
41+
42+
Add `\"rust-analyzer.raLspServerPath\": \"ra_lsp_server\",` to VS Code settings,
43+
otherwise it will use the latest release from GitHub.
44+
"
45+
)
46+
}
3647
Ok(())
3748
}
3849
}

0 commit comments

Comments
 (0)