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

Can we have an API to figure out the list of files Visual Studio Code is watching? #109452

Closed
kartikeyshetty opened this issue Oct 27, 2020 · 5 comments
Labels
feature-request Request for new features or functionality file-watcher File watcher

Comments

@kartikeyshetty
Copy link

I have a large codebase opened in Visual Studio Code ( about 60k files ). I get the "Unable to watch for file changes ... " whenever i do. To get rid of the message, i have the files.watcherExclude setting set up, leaving only about 1000 files on watch. My watcher limit is the typical 8192 files. But with these settings on, the "Unable to watch..." pops up. I suspect my files.watcherExclude pattern.

Is there an API to see the list of files Visual Studio Code is watching ?If not can we get one. I can improve my watcherExclude pattern if i can see which files are still being watched.

@bpasero bpasero added feature-request Request for new features or functionality file-watcher File watcher labels Oct 27, 2020
@bpasero bpasero removed their assignment Oct 27, 2020
@GitMensch
Copy link
Contributor

Come on botty, that's 15 votes and a list of that is definitely available "internally", it's just about dumping these per request to the output pane...

@GitMensch
Copy link
Contributor

A (possibly not portable) workaround for Linux was posted by @jhanschoo in #45295 (comment). It is a shell script that tries to query that information. from the handles open on process-level.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-watcher File watcher
Projects
None yet
Development

No branches or pull requests

4 participants
@bpasero @GitMensch @kartikeyshetty and others