diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-01 20:49:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 00:49:09 +0000 |
commit | 1cefa831fd74b14121494045a347024502d74e34 (patch) | |
tree | cc7791cf674e427fe4165262db416e6c537e99a3 /cli/lsp/urls.rs | |
parent | 36ae37604a0ddab4349df6eb6fafb8ae39fd20fc (diff) |
feat(unstable): optional `deno_modules` directory (#19977)
Closes #15633
Diffstat (limited to 'cli/lsp/urls.rs')
-rw-r--r-- | cli/lsp/urls.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/lsp/urls.rs b/cli/lsp/urls.rs index dee89c977..ee9684f64 100644 --- a/cli/lsp/urls.rs +++ b/cli/lsp/urls.rs @@ -12,7 +12,6 @@ use deno_core::url::Url; use deno_core::ModuleSpecifier; use once_cell::sync::Lazy; use std::collections::HashMap; -use std::sync::Arc; /// Used in situations where a default URL needs to be used where otherwise a /// panic is undesired. @@ -120,8 +119,8 @@ pub enum LspUrlKind { /// A bi-directional map of URLs sent to the LSP client and internal module /// specifiers. We need to map internal specifiers into `deno:` schema URLs /// to allow the Deno language server to manage these as virtual documents. -#[derive(Debug, Default, Clone)] -pub struct LspUrlMap(Arc<Mutex<LspUrlMapInner>>); +#[derive(Debug, Default)] +pub struct LspUrlMap(Mutex<LspUrlMapInner>); impl LspUrlMap { /// Normalize a specifier that is used internally within Deno (or tsc) to a |