Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing events for files with directory prefix #84

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

natebosch
Copy link
Member

Fixes dart-lang/tools#1722

If any event had the same leading characters as a directory that was
also changed it would get filtered out. For example if both lib/b/ and
lib/b.dart have change events we'd lose the events for lib/b.dart
because it shared a prefix with a directory, even though it isn't
contained within that directory.

Fixes #83

If any event had the same leading characters as a directory that was
also changed it would get filtered out. For example if both `lib/b/` and
`lib/b.dart` have change events we'd lose the events for `lib/b.dart`
because it shared a prefix with a directory, even though it isn't
contained within that directory.
@natebosch natebosch requested a review from grouma April 16, 2020 00:08
Copy link
Member

@grouma grouma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@natebosch natebosch merged commit e16f25f into master Apr 16, 2020
@natebosch natebosch deleted the missed-events-mac-prefix branch April 16, 2020 00:38
mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 11, 2024
)

Fixes dart-lang/watcher#83

If any event had the same leading characters as a directory that was
also changed it would get filtered out. For example if both `lib/b/` and
`lib/b.dart` have change events we'd lose the events for `lib/b.dart`
because it shared a prefix with a directory, even though it isn't
contained within that directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When "git checkout" moves a file, the analysis server doesn't process the removal of the old file
3 participants