【问题标题】:Can't Remove leafgarland-vim TypeScript experimentalDecorator warning无法删除 leafgarland-vim TypeScript experimentalDecorator 警告
【发布时间】:2015-12-18 03:04:05
【问题描述】:

我安装了 leafgarland-vim 插件,当我保存我的 .ts 文件时,我总是收到以下警告:

我尝试将let g:typescript_compiler_options="--experimentalDecorators" 添加到我的~/.vimrc,并且在第一次输入“:”之后,我还在 vim 中输入了该命令。我什至可以做:echo g:typescript_compiler_options,它返回--experimentalDecorators。然而每次我去保存我都会得到这个错误。

我怎样才能让这个错误消失? --experimentalDecorators 似乎没有完成它的工作。

编辑: 我从 vim 内部试过这个:
:let g:typescript_compiler_options = '--dnwejuidbnwejudbn'
并且代码仍然编译,并带有相同的警告。我不认为 let g:typescript_compiler_options 实际上在做任何事情。

edit2:

edit3: 与此同时,这个黑客摆脱了警告:

【问题讨论】:

    标签: vim plugins typescript tsc


    【解决方案1】:

    我在猜测,但我认为您从另一个插件(可能是 Syntastic)中看到了这些警告。 Syntastic 使用自己的编译器设置。

    你可以尝试在你的 vimrc 中添加类似这一行的内容:

    let g:syntastic_typescript_tsc_args = "--experimentalDecorators"

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-30
      • 2021-12-09
      • 2021-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-04
      • 2019-01-15
      相关资源
      最近更新 更多