Skip to content

Commit

Permalink
fix(nxls): ignore .nx/workspace-data paths as a precaution (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless authored Jun 26, 2024
1 parent bb73bdf commit 60c91ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/language-server/watcher/src/lib/daemon-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export class DaemonWatcher {
const normalized = normalize(f.path);
return !(
normalized.includes(normalize('.yarn/cache')) ||
normalized.includes(normalize('.nx/cache'))
normalized.includes(normalize('.nx/cache')) ||
normalized.includes(normalize('.nx/workspace-data'))
);
}) ?? [];
if (filteredChangedFiles.length === 0) {
Expand Down
3 changes: 2 additions & 1 deletion libs/language-server/watcher/src/lib/native-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export class NativeWatcher {
NativeWatcher.openDocuments.has(path)) &&
!path.startsWith('node_modules') &&
!path.startsWith(normalize('.nx/cache')) &&
!path.startsWith(normalize('.yarn/cache'))
!path.startsWith(normalize('.yarn/cache')) &&
!path.startsWith(normalize('.nx/workspace-data'))
)
) {
if (this.stopped) {
Expand Down

0 comments on commit 60c91ff

Please sign in to comment.