PHP Tools is watching way too many files.
I have these settings:
"**/.cache/**": true,
"**/.vscode-server/**": true,
"**/node_modules/**": true,
"**/var/**": true,
"**/vendor/**": true
},
"php.problems.exclude": {
"/.cache/**": true,
"/.vscode-server/**": true,
"/node_modules/**": true,
"/var/**": true,
"/vendor/**": true
}
Using a script to find the number of watched files, 11,852 files are being watched by the process ~/.vscode-server/extensions/devsense.phptools-vscode-1.6.8448/out/server/Devsense.PHP.LanguageServer
This is kind of insane as there are only 2,293 php files in the project, including ones which are excluded. Only 328 of these php files are in folder which are included. Even if you want to make the case that every file which isnt excluded, should be watched no matter the type, that would only be 1,778 files
The only conclusion I can draw from this is either multiple watchers are being created on the same files, or every file type is being watched including files in excluded directories. Whatever the reason, this is madness. People who use file watchers to compile css/js will be totally unable to use this program as it quickly maxes out the maximum number of files being watched on medium to large projects. sysctl fs.inotify.max_user_watches
For completeness here is a breakdown of file count by directory (total 1,827,428)