diff options
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r-- | cli/lsp/diagnostics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index 7c5ab936a..aef5ae889 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -14,6 +14,7 @@ use super::tsc::TsServer; use crate::args::LintConfig; use crate::diagnostics; +use crate::npm::NpmPackageReference; use deno_ast::MediaType; use deno_core::anyhow::anyhow; @@ -846,6 +847,8 @@ fn diagnose_resolved( .push(DenoDiagnostic::NoAssertType.to_lsp_diagnostic(&range)), } } + } else if NpmPackageReference::from_specifier(specifier).is_ok() { + // ignore npm specifiers for now } else { // When the document is not available, it means that it cannot be found // in the cache or locally on the disk, so we want to issue a diagnostic |