- VSCode Version: 1.47.1
- Local OS Version: Windows 10.0.19041 N/A Build 19041
- Remote OS Version: NAME="Ubuntu" / VERSION="14.04.5 LTS, Trusty Tahr"
- Remote Extension/Connection Type: SSH
Upon connection, VSCode says
"Unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue."
which is explained in detail at: https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
I'd like to try limiting the file watcher's scope. I think it is currently trying to watch ALL the files in the server, not just my files in a small directory.
Official documentatoin says:
Another option is to exclude specific workspace directories from the VS Code file watcher with the files.watcherExclude setting. The default for files.watcherExclude excludes node_modules and some folders under .git, but you can add other directories that you don't want VS Code to track.
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true }
But my question is:
Where does file watcher "watch"? In what scope? Does it attempt to watch ALL the files in the server? When I added these settings (actually, only below 2 lines) to .vscode/settings.json, file watcher warning STOPPED popping out.
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
"/**": true,
"/home/my-user-name-john-doe/**": false
}
I was trying to say: "Hey VSCode, stop watching all the file changes in the / root directories and only focus on MY directory."
Did I make myself clear here? Is the above settings does exactly what I was trying to say?
I'm getting an error that says:
Is it provoked by the changes in the settings.json?
