diff options
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 21cc3ec56..c63b16ce6 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -14,7 +14,6 @@ use deno_core::anyhow::anyhow; use deno_core::error::custom_error; use deno_core::error::AnyError; use deno_core::serde::Deserialize; -use deno_core::serde_json; use deno_core::serde_json::json; use deno_core::ModuleSpecifier; use lspower::lsp; @@ -61,18 +60,6 @@ static PREFERRED_FIXES: Lazy<HashMap<&'static str, (u32, bool)>> = static IMPORT_SPECIFIER_RE: Lazy<Regex> = Lazy::new(|| Regex::new(r#"\sfrom\s+["']([^"']*)["']"#).unwrap()); -static DENO_TYPES_RE: Lazy<Regex> = Lazy::new(|| { - Regex::new(r#"(?i)^\s*@deno-types\s*=\s*(?:["']([^"']+)["']|(\S+))"#).unwrap() -}); - -static TRIPLE_SLASH_REFERENCE_RE: Lazy<Regex> = - Lazy::new(|| Regex::new(r"(?i)^/\s*<reference\s.*?/>").unwrap()); - -static PATH_REFERENCE_RE: Lazy<Regex> = - Lazy::new(|| Regex::new(r#"(?i)\spath\s*=\s*["']([^"']*)["']"#).unwrap()); -static TYPES_REFERENCE_RE: Lazy<Regex> = - Lazy::new(|| Regex::new(r#"(?i)\stypes\s*=\s*["']([^"']*)["']"#).unwrap()); - const SUPPORTED_EXTENSIONS: &[&str] = &[".ts", ".tsx", ".js", ".jsx", ".mjs"]; /// Category of self-generated diagnostic messages (those not coming from) |