无法删除leafgarland-vim TypeScript experimentalDecorator警告

Mag*_*don 4 vim plugins typescript tsc

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

VIM内部警告的屏幕截图

我已经尝试添加let g:typescript_compiler_options="--experimentalDecorators"到我的〜/ .vimrc,并且在第一次输入":"之后我也从vim内部输入了该命令.我甚:echo g:typescript_compiler_options至可以做,然后回来--experimentalDecorators.然而,每次我去保存,我都会收到此错误.

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

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

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

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

Lea*_*and 5

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

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

let g:syntastic_typescript_tsc_args = "--experimentalDecorators"

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