【问题标题】:VS Code uses 100% CPU even if it is closedVS Code 即使关闭也使用 100% CPU
【发布时间】:2022-07-01 22:23:26
【问题描述】:

即使没有打开,VS Code 也会占用 100% 的 CPU 使用率。我运行了ps aux | grep PID 命令来检查详细信息,但什么都不懂。这是输出:

tawhid           27099 100.0  0.1 447352160  11856   ??  R     7:18PM 151:14.95 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork --type=fileWatcher
tawhid           31889   0.0  0.0 408628368   1616 s000  S+   10:28PM   0:00.00 grep 27099

谁能解释一下是什么进程或扩展使用了如此高的 CPU 百分比? 我有 MacBook Air 2020。出于好奇,我安装了很多扩展。

【问题讨论】:

    标签: macos visual-studio-code terminal


    【解决方案1】:

    尝试禁用“设置同步”。

    就像最新版本的 VSCode 有一个 Electron 进程使用过多的 CPU (40%-100%)。好像是electron相关的bug

    Here is this issue thread on github

    如果不起作用,您可以尝试降级 VSCode to 1.47 并禁用更新。转到文件 > 首选项 > 设置(代码 > 首选项 > 设置),搜索更新模式并将设置更改为无。

    22 年 7 月 1 日编辑: Another issue related to "Code Helper (Renderer)". Sometimes it's take a huge amount of CPU.

    转到设置 -> 跟随符号链接并禁用它。 或者编辑 settings.json 并输入:

    search.followSymlinks: false

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-11
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 2019-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多