summaryrefslogtreecommitdiff
path: root/cli/lsp/config.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-09-04 13:22:30 +0100
committerGitHub <noreply@github.com>2024-09-04 13:22:30 +0100
commit84dc375b2d28a0ba9ddf0fbc5168505c19b1adea (patch)
tree5e55570a55da3e5f2261c11bb3b17df49b85e0bb /cli/lsp/config.rs
parent0e0a5c24ea8b17d410c30bf3fcb70c749b35f8b3 (diff)
fix(lsp): update diagnostics on npm install (#25352)
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r--cli/lsp/config.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index d204dce64..f9262d12e 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -1697,9 +1697,14 @@ impl ConfigTree {
}
pub fn is_watched_file(&self, specifier: &ModuleSpecifier) -> bool {
- if specifier.path().ends_with("/deno.json")
- || specifier.path().ends_with("/deno.jsonc")
- || specifier.path().ends_with("/package.json")
+ let path = specifier.path();
+ if path.ends_with("/deno.json")
+ || path.ends_with("/deno.jsonc")
+ || path.ends_with("/package.json")
+ || path.ends_with("/node_modules/.package-lock.json")
+ || path.ends_with("/node_modules/.yarn-integrity.json")
+ || path.ends_with("/node_modules/.modules.yaml")
+ || path.ends_with("/node_modules/.deno/.setup-cache.bin")
{
return true;
}