繁体   English   中英

无法删除leafgarland-vim TypeScript experimentalDecorator警告

[英]Can't Remove leafgarland-vim TypeScript experimentalDecorator warning

我安装了leafgarland-vim插件,当我保存.ts文件时,我总是得到这个警告:

VIM内部警告的屏幕截图

我尝试将let g:typescript_compiler_options="--experimentalDecorators"到我的〜/ .vimrc中 ,并且在第一次输入“:”后我也从vim内部输入了该命令。 我甚至可以这样做:echo g:typescript_compiler_options --experimentalDecorators ,它返回--experimentalDecorators 然而,每次我去保存,我都会收到此错误。

怎么才能让这个错误消失? --experimentalDecorators似乎没有做好自己的工作。

编辑:我在vim内部尝试过这个:
:让g:typescript_compiler_options =' - norwejuidbnwejudbn'
代码仍然编译,同样的警告。 我认为let g:typescript_compiler_options实际上并没有做任何事情。

EDIT2: 显然,这些设置实际上都没有做任何事情

edit3:与此同时,这个hack摆脱了警告: 在此输入图像描述

我猜,但我认为你看到来自另一个插件的警告,可能是Syntastic。 Syntastic使用自己的编译器设置。

你可以尝试在你的vimrc中添加类似这样的东西:

let g:syntastic_typescript_tsc_args = "--experimentalDecorators"

有关更多详细信息,请参阅:help syntastic-checker-options

暂无
暂无

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

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