Skip to content

Commit 7acb20f

Browse files
authored
fix(nxls): filter all paths that include a cache folder (#2128)
1 parent ac804b0 commit 7acb20f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/language-server/watcher/src/lib/daemon-watcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export class DaemonWatcher {
9595
data?.changedFiles?.filter((f) => {
9696
const normalized = normalize(f.path);
9797
return !(
98-
normalized.startsWith(normalize('.yarn/cache')) ||
99-
normalized.startsWith(normalize('.nx/cache'))
98+
normalized.includes(normalize('.yarn/cache')) ||
99+
normalized.includes(normalize('.nx/cache'))
100100
);
101101
}) ?? [];
102102
if (filteredChangedFiles.length === 0) {

0 commit comments

Comments
 (0)