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

Fixes file watcher #18

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Fixes file watcher #18

merged 1 commit into from
Apr 10, 2024

Conversation

rpaul-stripe
Copy link
Collaborator

The file watcher gets a path that is relative to the content root and then passes that into the scanner, but the scanner expects either a path that is relative to the workspace root or an absolute path. This was resulting in files that are added or deleted after completion of the initial scan not being correctly added or removed in the in-memory file index.

This change makes it so that an absolute path gets passed to Scanner.update and Scanner.delete so that it works as expected.

@rpaul-stripe rpaul-stripe merged commit a4ba348 into main Apr 10, 2024
1 check passed
@rpaul-stripe rpaul-stripe deleted the file-watch-fix branch April 10, 2024 16:37
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.

1 participant