[英]Can't Remove leafgarland-vim TypeScript experimentalDecorator warning
我安裝了leafgarland-vim插件,當我保存.ts文件時,我總是得到這個警告:
我嘗試將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實際上並沒有做任何事情。
我猜,但我認為你看到來自另一個插件的警告,可能是Syntastic。 Syntastic使用自己的編譯器設置。
你可以嘗試在你的vimrc中添加類似這樣的東西:
let g:syntastic_typescript_tsc_args = "--experimentalDecorators"
有關更多詳細信息,請參閱:help syntastic-checker-options
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.