我经常遇到“Visual Studio Code无法监视此大型工作区的文件更改”的错误,但我无法弄清原因。
项目结构如下:
Visual Studio Code (Linux): 1.24.1
我的排除设置是:
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.svn/**": true,
"**/dist/**": true,
"**/dist-prod/**":true
}
项目结构如下:
angular.json
/dist
/dist-prod
/e2e
ngsw-config.json
/node_modules
package.json
package-lock.json
proxy.conf.json
README.md
/src
tsconfig.json
tslint.json
xliffmerge.json
.editorconfig
.gitignore
/.svn
/src 目录下只有 167 个文件和文件夹。我怀疑 node_modules 并没有被正确排除,但我无法确定设置是否正确。
重启 VSC 后问题消失了,但过一会儿后问题又出现了...
Watcher exclude
设置为默认值,其中包括**/node_modules/**
。 - Jonas Rosenqvist