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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs
index bad932176..f047e5fd4 100644
--- a/cli/lsp/cache.rs
+++ b/cli/lsp/cache.rs
@@ -84,7 +84,7 @@ impl CacheMetadata {
}
fn refresh(&self, specifier: &ModuleSpecifier) -> Option<Metadata> {
- if specifier.scheme() == "file" || specifier.scheme() == "npm" {
+ if matches!(specifier.scheme(), "file" | "npm" | "node") {
return None;
}
let cache_filename = self.cache.get_cache_filename(specifier)?;