summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-02-06 14:56:26 +0000
committerGitHub <noreply@github.com>2024-02-06 14:56:26 +0000
commit327b5b280b3914fffb5dc89019e4adfefa2b9eb5 (patch)
tree6114a94e3011f3a6ab3831fdf1ffdfe8a8362441 /cli/lsp/diagnostics.rs
parent7c111da5f698b20db4db9e7fc02463f401c081db (diff)
fix(lsp): disable no-cache diagnostics for jsr specifiers (#22284)
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index a09f7169d..0c193040b 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -1332,6 +1332,8 @@ fn diagnose_resolution(
None => diagnostics.push(DenoDiagnostic::NoAttributeType),
}
}
+ } else if specifier.scheme() == "jsr" {
+ // TODO(nayeemrmn): Check if jsr specifiers are cached.
} else if let Ok(pkg_ref) =
NpmPackageReqReference::from_specifier(specifier)
{