From 865759925be6b72f7ef39124ed0e4c86c0412a69 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Feb 2020 12:37:45 +0100 Subject: Rename folder --- crates/ra_lsp_server/src/lib.rs | 54 ----------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 crates/ra_lsp_server/src/lib.rs (limited to 'crates/ra_lsp_server/src/lib.rs') diff --git a/crates/ra_lsp_server/src/lib.rs b/crates/ra_lsp_server/src/lib.rs deleted file mode 100644 index 0dae30e46..000000000 --- a/crates/ra_lsp_server/src/lib.rs +++ /dev/null @@ -1,54 +0,0 @@ -//! Implementation of the LSP for rust-analyzer. -//! -//! This crate takes Rust-specific analysis results from ra_ide and translates -//! into LSP types. -//! -//! It also is the root of all state. `world` module defines the bulk of the -//! state, and `main_loop` module defines the rules for modifying it. -//! -//! The `cli` submodule implements some batch-processing analysis, primarily as -//! a debugging aid. -#![recursion_limit = "512"] - -pub mod cli; - -#[allow(unused)] -macro_rules! println { - ($($tt:tt)*) => { - compile_error!("stdout is locked, use eprintln") - }; -} - -#[allow(unused)] -macro_rules! print { - ($($tt:tt)*) => { - compile_error!("stdout is locked, use eprint") - }; -} - -mod vfs_glob; -mod caps; -mod cargo_target_spec; -mod conv; -mod main_loop; -mod markdown; -pub mod req; -mod config; -mod world; -mod diagnostics; - -use serde::de::DeserializeOwned; - -pub type Result = std::result::Result>; -pub use crate::{ - caps::server_capabilities, - config::ServerConfig, - main_loop::LspError, - main_loop::{main_loop, show_message}, -}; - -pub fn from_json(what: &'static str, json: serde_json::Value) -> Result { - let res = T::deserialize(&json) - .map_err(|e| format!("Failed to deserialize {}: {}; {}", what, e, json))?; - Ok(res) -} -- cgit v1.2.3