如何解决 VScode 终端打字时的延迟/不稳定问题?

问题描述 投票:0回答:2

不确定这是否来自 Big Sur,安装 Docker 扩展还是其他什么,但在上周,我注意到在 VScode 终端中输入时,每次我完成 git add 时。 、 git commit -m "etc"、 git Push origin master ,总是有一两次终端在视觉上显示我暂时没有输入任何内容。它本质上是滞后的,并显示正在打字的白色方形图标,在短暂的“暂停”后 1 秒内,我实际正在打字的内容显示为正常。这种情况会间歇性地发生,甚至在删除 Docker 插件并将我的 VScode 设置为:

"terminal.integrated.allowChords": false,   "terminal.integrated.drawBoldTextInBrightColors": false,   "terminal.integrated.experimentalLinkProvider": false, "terminal.integrated.rendererType": "auto"

我仍然注意到,打字时会出现随机的 1 秒停顿和断断续续的情况。有针对这个的解决方法吗?我在使用这款 MBP 2019 16inch 的过去一年里都没有经历过这种情况,而且最近才开始使用。

terminal visual-studio-code
2个回答
7
投票

查看此问题:https://github.com/microsoft/vscode/issues/105446

据报道,正在运行

codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app

在终端中然后重新加载 vscode 似乎可以解决很多人的问题。


0
投票

在你的settings.json中尝试一下:

"terminal.integrated.gpuAcceleration": "canvas"

如果这没有帮助,请尝试:

"terminal.integrated.gpuAcceleration": "off"

© www.soinside.com 2019 - 2024. All rights reserved.