【问题标题】:Is it possible to change VS Code's error message length?是否可以更改 VS Code 的错误消息长度?
【发布时间】:2021-02-01 04:58:04
【问题描述】:

我想知道是否有可能在 VS Code 中看到整个错误消息。

我的意思是例如这个:

 Type '{ queryParamMap: string | boolean | ParamMap | SomeArray[]; showSpinner: string | boolean | ParamMap | SomeArray[]; ... 9 more ...; someFilter: string | ... 2 more ... | SomeArray[]; }' is not assignable to type 'boolean'.

我想看看/知道那些被 ... 9 更多 ... 和 ... 2 更多 ... 隐藏的东西是什么。

请不要在 Angular 应用程序中给出这个。

谢谢。

【问题讨论】:

  • 看tsc的输出
  • 感谢@tscpp 的评论,但由于这是一个 Angular 应用程序,我似乎在“输出/tsc”选项卡和“问题”窗格中找不到任何内容,它给了我相同的错误消息。

标签: angular typescript visual-studio-code vscode-settings


【解决方案1】:

事实证明,它不是特定于编辑器的,但您可以通过在 tsconfing.json 文件中设置 "noErrorTruncation": true, 来实现。

【讨论】:

    猜你喜欢
    • 2019-01-20
    • 2020-06-02
    • 2018-12-18
    • 2019-11-30
    • 1970-01-01
    • 2013-08-03
    • 2021-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多