簡體   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