如何防止Visual Studio代码终端删除字符后未显示正确的提示?

发布于 2025-02-11 16:03:33 字数 118 浏览 0 评论 0原文

当通过SSH与Visual Studio代码连接并从终端提示输入中删除字符时,该字符通常处于不良状态。提示可能留下一些未呈现的剩余字符,或者呈现的字符,但实际上不在提示中,因此无法确定其当前状态。

如何修复?

When connecting through ssh with Visual Studio Code and deleting characters from the terminal prompt input, this one is usually left in a bad state. The prompt may be left with some remaining characters that are not rendered, or characters that are rendered but are not actually in the prompt, making it impossible to determine its current state.

How can this be fixed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长发绾君心 2025-02-18 16:03:33

解决方案非常简单。在 file> perecences> settings 搜索terminal.intinal.integrated.localecholatencythresthreshold设置并将其设置为> -1(或set terminal.terminal.intinal.intinal.integrated.integrated.integrated.integrated.integrated.integrated.integrated.integrated.integrated in .localechoenabled to off)。

这会禁用本地回声延迟(在未等待服务器确认的情况下,在终端上回动了本地编辑的延迟)。通过这样做,您可以确保本地终端提示始终具有与服务器提示符相同的状态。

The solution is very simple. Under File>Preferences>Settings search for terminal.integrated.localEchoLatencyThreshold setting and set it to -1 (or set terminal.integrated.localEchoEnabled to off).

This disables the local echo latency (delay in which local edits are echoed on the terminal without waiting for server acknowledgement). By doing so, you ensure that the local terminal prompt always has the same state as the server prompt.

Fix found on https://github.com/microsoft/vscode/issues/133885.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文