Skip to content

How to tell when FileSystemWatcher actually starts listening for events #1242

Discussion options

You must be logged in to vote

Hello @olguzzar , yes we are still facing this problem. I created a feature request here but since this is a feature only really useful for extension authors who try to test the way their extensions integrate with file watching there seems to be little interest.

At the moment we are considering mocking the whole file watcher in tests and emitting expected file events manually, since the vscode provided facility can't be relied on in automated testing for reasons outlined above. While this approach makes the tests reliable, it lowers confidence in the features in the extension being tested working as expected "in the real world" when combined with the real file watching. Also it makes writ…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vaclavHala
Comment options

Answer selected by olguzzar
@olguzzar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants