summaryrefslogtreecommitdiff
path: root/cli/lsp/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r--cli/lsp/cache.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs
index df88254ee..9ce47a11b 100644
--- a/cli/lsp/cache.rs
+++ b/cli/lsp/cache.rs
@@ -69,7 +69,10 @@ impl CacheMetadata {
&self,
specifier: &ModuleSpecifier,
) -> Option<Arc<HashMap<MetadataKey, String>>> {
- if matches!(specifier.scheme(), "file" | "npm" | "node") {
+ if matches!(
+ specifier.scheme(),
+ "file" | "npm" | "node" | "data" | "blob"
+ ) {
return None;
}
let version = self
@@ -85,7 +88,10 @@ impl CacheMetadata {
}
fn refresh(&self, specifier: &ModuleSpecifier) -> Option<Metadata> {
- if matches!(specifier.scheme(), "file" | "npm" | "node") {
+ if matches!(
+ specifier.scheme(),
+ "file" | "npm" | "node" | "data" | "blob"
+ ) {
return None;
}
let cache_filename = self.cache.get_cache_filename(specifier)?;