简体   繁体   English

VSCode 上突出显示的错误

[英]Highlighted errors on VSCode

Suddenly, the way to analyze and display errors in vscode changed.突然,在 vscode 中分析和显示错误的方式发生了变化。 From today it marks the entire function block as an error, which is annoying because it becomes very confusing.从今天开始,它将整个 function 块标记为错误,这很烦人,因为它变得非常混乱。 I do not know if without intention I pressed a shortcut, or some combination of keys.我不知道我是否无意按下了快捷方式或某些组合键。 Does anyone know how to return to the previous mode?有谁知道如何回到以前的模式?

Thanks a lot.非常感谢。

以前和现在如何显示错误。

Before LSP, the error range was being accidentally truncated to a single line .在 LSP 之前,错误范围被意外截断为单行 With LSP the complete region is used, which means you now see the actual range produced by the analyzer. LSP 使用的是完整区域,这意味着您现在可以看到分析仪产生的实际范围。

Turning off LSP is only a short-term fix as it will soon became the default (and only) option, so if you think the shorter ranges are better, please file an issue at https://github.com/dart-lang/sdk for some discussion.关闭 LSP 只是一个短期修复,因为它将很快成为默认(也是唯一)选项,因此如果您认为较短的范围更好,请在https://github.com/dart-lang/提交问题sdk进行一些讨论。 Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM