How to debug an issue with vscode setting files.watcherExclude

Mark Wood-Patrick 1 Reputation point
2022-12-29T12:03:35.957+00:00

How to debug an issue with vscode code-server setting files.watcherExclude?

I have a workspace and am getting a warning saying that vscode can't watch all the files in the workspace however I added a setting:

  "files.watcherExclude": {  
        "**/project/**": true  
    }  

which should have removed most of the files from consideration but I'm still getting this warning

Is there a way to verify exactly which files vscode code-server is trying to watch?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,789 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,495 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 9,046 Reputation points
    2022-12-29T16:31:22.973+00:00

    Hello there,

    Yes you can verify exactly which files are scanned.

    When you see this notification, it indicates that the VS Code file watcher is running out of handles because the workspace is large and contains many files.

    You can get more information from here

    https:// code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--


  2. Mark Wood-Patrick 1 Reputation point
    2022-12-30T11:17:02.987+00:00

    I understand the issue I'm hitting and did read the article https:// code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc.

    As far as I can see this article describes what's causing the problem and how to reduce the number of files being watched by setting the "files.watcherExclude" field in settings.json or by increasing the number of files that can be watched but I did not see how to view exactly which files vscode is trying to watch, did I miss something?

    No comments

  3. Mark Wood-Patrick 1 Reputation point
    2022-12-30T16:59:10.807+00:00

    Where is the best place to ask vscode questions and suggest enhancements?

    No comments