summaryrefslogtreecommitdiff
path: root/cli/lsp/urls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/urls.rs')
-rw-r--r--cli/lsp/urls.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/lsp/urls.rs b/cli/lsp/urls.rs
index 49049b535..52876157a 100644
--- a/cli/lsp/urls.rs
+++ b/cli/lsp/urls.rs
@@ -11,6 +11,12 @@ use deno_core::url::Url;
use deno_core::ModuleSpecifier;
use std::collections::HashMap;
+lazy_static::lazy_static! {
+ /// Used in situations where a default URL needs to be used where otherwise a
+ /// panic is undesired.
+ pub(crate) static ref INVALID_SPECIFIER: ModuleSpecifier = ModuleSpecifier::parse("deno://invalid").unwrap();
+}
+
/// Matches the `encodeURIComponent()` encoding from JavaScript, which matches
/// the component percent encoding set.
///