From c0fa5e2246457df10e92c2e11c971f2f40921793 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Feb 2020 12:33:16 +0100 Subject: Rename the binary to rust-analyzer --- crates/ra_lsp_server/src/bin/args.rs | 16 ++++++++-------- crates/ra_lsp_server/src/bin/main.rs | 6 +++--- crates/ra_lsp_server/src/main_loop.rs | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/bin/args.rs b/crates/ra_lsp_server/src/bin/args.rs index 3890fe13a..5ad3963a2 100644 --- a/crates/ra_lsp_server/src/bin/args.rs +++ b/crates/ra_lsp_server/src/bin/args.rs @@ -5,7 +5,7 @@ use anyhow::{bail, Result}; use pico_args::Arguments; -use ra_lsp_server::cli::{BenchWhat, Position, Verbosity}; +use rust_analyzer::cli::{BenchWhat, Position, Verbosity}; use std::{fmt::Write, path::PathBuf}; @@ -74,7 +74,7 @@ impl Args { ra-cli-parse USAGE: - ra_lsp_server parse [FLAGS] + rust-analyzer parse [FLAGS] FLAGS: -h, --help Prints help inforamtion @@ -94,7 +94,7 @@ FLAGS: ra-cli-symbols USAGE: - ra_lsp_server highlight [FLAGS] + rust-analyzer highlight [FLAGS] FLAGS: -h, --help Prints help inforamtion" @@ -113,7 +113,7 @@ FLAGS: ra-cli-highlight USAGE: - ra_lsp_server highlight [FLAGS] + rust-analyzer highlight [FLAGS] FLAGS: -h, --help Prints help information @@ -133,7 +133,7 @@ FLAGS: ra-cli-analysis-stats USAGE: - ra_lsp_server analysis-stats [FLAGS] [OPTIONS] [PATH] + rust-analyzer analysis-stats [FLAGS] [OPTIONS] [PATH] FLAGS: -h, --help Prints help information @@ -168,10 +168,10 @@ ARGS: if matches.contains(["-h", "--help"]) { eprintln!( "\ -ra_lsp_server-analysis-bench +rust-analyzer-analysis-bench USAGE: - ra_lsp_server analysis-bench [FLAGS] [OPTIONS] [PATH] + rust-analyzer analysis-bench [FLAGS] [OPTIONS] [PATH] FLAGS: -h, --help Prints help information @@ -207,7 +207,7 @@ ARGS: ra-cli USAGE: - ra_lsp_server + rust-analyzer FLAGS: -h, --help Prints help information diff --git a/crates/ra_lsp_server/src/bin/main.rs b/crates/ra_lsp_server/src/bin/main.rs index e25d54a0d..69e709a25 100644 --- a/crates/ra_lsp_server/src/bin/main.rs +++ b/crates/ra_lsp_server/src/bin/main.rs @@ -4,8 +4,8 @@ mod args; use lsp_server::Connection; -use ra_lsp_server::{cli, from_json, show_message, Result, ServerConfig}; use ra_prof; +use rust_analyzer::{cli, from_json, show_message, Result, ServerConfig}; use crate::args::HelpPrinted; @@ -51,7 +51,7 @@ fn run_server() -> Result<()> { log::info!("lifecycle: server started"); let (connection, io_threads) = Connection::stdio(); - let server_capabilities = serde_json::to_value(ra_lsp_server::server_capabilities()).unwrap(); + let server_capabilities = serde_json::to_value(rust_analyzer::server_capabilities()).unwrap(); let initialize_params = connection.initialize(server_capabilities)?; let initialize_params = @@ -84,7 +84,7 @@ fn run_server() -> Result<()> { }) .unwrap_or_default(); - ra_lsp_server::main_loop( + rust_analyzer::main_loop( workspace_roots, initialize_params.capabilities, server_config, diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 67d8a5f6f..dc16a234d 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -1,4 +1,4 @@ -//! The main loop of `ra_lsp_server` responsible for dispatching LSP +//! The main loop of `rust-analyzer` responsible for dispatching LSP //! requests/replies and notifications back to the client. mod handlers; -- cgit v1.2.3