mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Merge #3079
3079: Add note r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
@@ -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 @@ pub fn run(self) -> Result<()> {
|
||||
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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user