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

listen to more than one file in createFileSystemWatcher API #177617

Closed
Ramin-RX7 opened this issue Mar 19, 2023 · 6 comments
Closed

listen to more than one file in createFileSystemWatcher API #177617

Ramin-RX7 opened this issue Mar 19, 2023 · 6 comments
Labels
api feature-request Request for new features or functionality file-watcher File watcher

Comments

@Ramin-RX7
Copy link

Ramin-RX7 commented Mar 19, 2023

I'm currently working on a vscode extension and need a file change detector. When using vscode.workspace.createFileSystemWatcher I can only specify one folder/file. I'm wondering if it is possible to add a function or change this function in a way that can accept more arguments for files we want to listen for changes.
(I know about glob patterns, but if folders/files have totally different paths, we need to make a complicated pattern for them or make several instances of createFileSystemWatcher with same behaviour. I'm asking if we can do this without a complicated pattern and without multiple instances)
(There are several different ways of doing this in my mind but I'll wait for your response.)
Related

@aiday-mar aiday-mar assigned bpasero and unassigned aiday-mar Mar 21, 2023
@bpasero bpasero added feature-request Request for new features or functionality api file-watcher File watcher labels Mar 21, 2023
@bpasero
Copy link
Member

bpasero commented Mar 21, 2023

I do not understand the need here since you can easily call the method multiple times.

@bpasero bpasero removed their assignment Mar 21, 2023
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Mar 21, 2023
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@M-Zoldak
Copy link

M-Zoldak commented Apr 5, 2023

I do not understand the need here since you can easily call the method multiple times.

I would really appreciate this feature. I'm using https://github.com/Natizyskunk/vscode-sftp where it's possible only to configure one watcher with glob pattern using function mentioned above.

On other side glob pattern supports writing multiple Files into pattern, which makes it in my opinion natural to configure it this way.

@theDyingMountain
Copy link

I can confirm the issue, glob pattern with multiple files are not useable.

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality file-watcher File watcher
Projects
None yet
Development

No branches or pull requests

6 participants