mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Add note
This commit is contained in:
parent
abeadb29ce
commit
bbd9013bca
1 changed files with 11 additions and 0 deletions
|
@ -24,6 +24,7 @@ pub struct ServerOpt {
|
||||||
|
|
||||||
impl InstallCmd {
|
impl InstallCmd {
|
||||||
pub fn run(self) -> Result<()> {
|
pub fn run(self) -> Result<()> {
|
||||||
|
let both = self.server.is_some() && self.client.is_some();
|
||||||
if cfg!(target_os = "macos") {
|
if cfg!(target_os = "macos") {
|
||||||
fix_path_for_mac().context("Fix path for mac")?
|
fix_path_for_mac().context("Fix path for mac")?
|
||||||
}
|
}
|
||||||
|
@ -33,6 +34,16 @@ impl InstallCmd {
|
||||||
if let Some(client) = self.client {
|
if let Some(client) = self.client {
|
||||||
install_client(client).context("install 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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue