diff options
Diffstat (limited to 'cli/lsp')
-rw-r--r-- | cli/lsp/analysis.rs | 2 | ||||
-rw-r--r-- | cli/lsp/diagnostics.rs | 1 | ||||
-rw-r--r-- | cli/lsp/language_server.rs | 5 | ||||
-rw-r--r-- | cli/lsp/tsc.rs | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 3359fc666..103a9c810 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -28,7 +28,7 @@ use std::collections::HashMap; use std::fmt; use std::rc::Rc; -lazy_static! { +lazy_static::lazy_static! { /// Diagnostic error codes which actually are the same, and so when grouping /// fixes we treat them the same. static ref FIX_ALL_ERROR_CODES: HashMap<&'static str, &'static str> = diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index d4ec3d494..82a365649 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -15,6 +15,7 @@ use deno_core::error::AnyError; use deno_core::serde_json; use deno_core::serde_json::json; use deno_core::ModuleSpecifier; +use log::error; use lspower::lsp; use lspower::Client; use std::collections::HashMap; diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 0dc9a95cb..74dcf2136 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -10,6 +10,9 @@ use deno_core::serde_json::json; use deno_core::serde_json::Value; use deno_core::ModuleSpecifier; use dprint_plugin_typescript as dprint; +use log::error; +use log::info; +use log::warn; use lspower::jsonrpc::Error as LspError; use lspower::jsonrpc::Result as LspResult; use lspower::lsp::request::*; @@ -55,7 +58,7 @@ use super::tsc::Assets; use super::tsc::TsServer; use super::urls; -lazy_static! { +lazy_static::lazy_static! { static ref ABSTRACT_MODIFIER: Regex = Regex::new(r"\babstract\b").unwrap(); static ref EXPORT_MODIFIER: Regex = Regex::new(r"\bexport\b").unwrap(); } diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index e6943472b..e3c094dfa 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -31,6 +31,7 @@ use deno_core::JsRuntime; use deno_core::ModuleSpecifier; use deno_core::OpFn; use deno_core::RuntimeOptions; +use log::warn; use lspower::lsp; use regex::Captures; use regex::Regex; |