简体   繁体   English

VSCode 中的活动更改过多

[英]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.

相关问题 带有 local.git 存储库的 vscode 说“活动更改太多” - vscode with a local .git repository saying “too many active changes” GIT > 20k 新文件阻塞了 VSCode UI,“活动更改过多” - GIT > 20k new files chokes VSCode UI, "Too many active changes" git vscode 太多无法显示 - git vscode too many to show “'/home/upulie/Desktop' 中的 git 存储库有太多活动更改,只有 Git 功能的子集将被启用” - "The git repository at '/home/upulie/Desktop' has too many active changes, only a subset of Git features will be enabled" VS Code - git 存储库有太多活动更改,将仅启用 Git 功能的一个子集 - VS Code - The git repository has too many active changes, only a subset of Git features will be enabled VS Code - 'c:\Users\myname' 的 git 存储库有太多活动更改,将仅启用 Git 功能的一个子集 - VS Code - The git repository at 'c:\Users\myname' has too many active changes, only a subset of Git features will be enabled 提交给母版的PR中的更改太多 - Too many changes in a PR submitted to master GitHub 贡献页面显示太多更改 - GitHub contributions page shows too many changes 在“Git:打开更改”编辑器处于活动状态时在 VSCode 中添加一个快捷键 - Add a shortcut key in VSCode that is active when the “Git: Open Changes” editor is active Github pull请求显示太多更改/提交 - Github pull request shows too many changes/commits
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM