I'd like to be able to watch for multiple file types. **/*.spsrc
and **/*.spinc
do I have to watch for **/*.*
instead and filter the extra notifications?
No, this can be done with a single watcher. Relevant section from the GlobPattern
docs:
Glob patterns can have the following syntax:
[....]
{}
to group conditions (e.g.**/*.{ts,js}
matches all TypeScript and JavaScript files)
So for your example, that would look like this:
vscode.workspace.createFileSystemWatcher("**/*.{spsrc,spinc}");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With