Skip to content

Remove dead shouldIgnoreEvent filter from file watcher#7492

Draft
isaacroldan wants to merge 1 commit intofile-watcher-detect-new-filesfrom
remove-file-watcher-dead-code
Draft

Remove dead shouldIgnoreEvent filter from file watcher#7492
isaacroldan wants to merge 1 commit intofile-watcher-detect-new-filesfrom
remove-file-watcher-dead-code

Conversation

@isaacroldan
Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

Post-release steps

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Copy link
Copy Markdown
Contributor Author

isaacroldan commented May 7, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

shouldIgnoreEvent always returned false for any event that reached it:
- extension_folder_* events short-circuited at the first line.
- The literal-list check (watchPaths.some(matchGlob)) was always true, because pushEvent was only ever called for paths that came from extensionWatchedFiles, which is itself built from watchedFiles().
- The else-if gitignore branch was unreachable: watchedFiles() always returns a (possibly empty) array, so watchPaths is always truthy.

Filtering for unknown paths happens earlier in handleFileEvent's 'not watched by any extension' early return; shouldIgnoreEvent was never doing real work.

Deletes the method, the `ignored` field and createIgnoreInstance helper, the extension_folder_created branch in pushEvent (its only job was to populate `ignored`), the updateApp ignore-population, and the dynamic-map short-circuit added in the parent PR (now redundant).
@isaacroldan isaacroldan force-pushed the remove-file-watcher-dead-code branch from 8e6d25a to c17d3cd Compare May 7, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/app @shopify/app package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant