From 84dc375b2d28a0ba9ddf0fbc5168505c19b1adea Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 4 Sep 2024 13:22:30 +0100 Subject: fix(lsp): update diagnostics on npm install (#25352) --- cli/lsp/config.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cli') 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; } -- cgit v1.2.3