是否可以更改 VS Code 的错误消息长度?
Is it possible to change VS Code's error message length?
我想知道是否有可能在 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 申请中给出。
谢谢。
事实证明它不是特定于编辑器的,但您可以通过在 tsconfing.json 文件中设置 "noErrorTruncation": true,
来实现。
我想知道是否有可能在 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 申请中给出。
谢谢。
事实证明它不是特定于编辑器的,但您可以通过在 tsconfing.json 文件中设置 "noErrorTruncation": true,
来实现。