We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c67bb5 commit 4e0f524Copy full SHA for 4e0f524
cli/lsp/config.rs
@@ -1774,9 +1774,10 @@ impl ConfigTree {
1774
1775
pub fn is_watched_file(&self, specifier: &Url) -> bool {
1776
let path = specifier.path();
1777
- if path.ends_with("/deno.json")
1778
- || path.ends_with("/deno.jsonc")
1779
- || path.ends_with("/package.json")
+ if !path.contains("/node_modules/")
+ && (path.ends_with("/deno.json")
+ || path.ends_with("/deno.jsonc")
1780
+ || path.ends_with("/package.json"))
1781
|| path.ends_with("/node_modules/.package-lock.json")
1782
|| path.ends_with("/node_modules/.yarn-integrity.json")
1783
|| path.ends_with("/node_modules/.modules.yaml")
0 commit comments