[英]Too many active changes in VSCode
When there's a directory with a particularly large amount of files (ex. node_modules), VSCode will complain that there are too many active changes.当有一个目录包含特别大量的文件(例如 node_modules)时,VSCode 会抱怨有太多的活动更改。 It's simple enough to add the directory to.gitignore, however, the git tab in VSCode gets stuck loading, and I'm unable to view any relevant changes unless I completely restart VSCode.
将目录添加到 .gitignore 很简单,但是 VSCode 中的 git 选项卡加载卡住了,除非我完全重新启动 VSCode,否则我无法查看任何相关更改。
Is there a way to refresh the git tab in VSCode without completely restarting the application?有没有办法在不完全重新启动应用程序的情况下刷新 VSCode 中的 git 选项卡? The refresh button at the top of the git tab seems to have no effect.
git 选项卡顶部的刷新按钮似乎没有任何作用。
I'm using Microsoft's Remote Development extension if it makes any difference.如果有任何区别,我正在使用 Microsoft 的远程开发扩展。
You can ask VSCode to totaly ignore some files/directories from being displayed/watched from your project.您可以要求 VSCode 完全忽略项目中显示/观看的某些文件/目录。
To do so, at the root of your projects create a .vscode
folder with a settings.json
file in it.为此,请在项目的根目录中创建一个
.vscode
文件夹,其中包含settings.json
文件。 This file will contains VSCode related configuration proper to this project only.该文件将包含仅适用于该项目的 VSCode 相关配置。
In this settings.json
, add:在此
settings.json
,添加:
{
"files.exclude": {
"**/node_modules/": true,
"another_large_folder_to_ignore": true
},
"files.watcherExclude": {
"**/node_modules/": true,
"another_large_folder_to_ignore": true
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.