Cannot remove leaf tree-vim TypeScript Experimental warning for decorator

I have the leafgarland-vim plugin installed , and when I save the .ts file, I always get this warning:

Screenshot with warning inside VIM

I tried adding let g:typescript_compiler_options="--experimentalDecorators"~ / .vimrc to my, and I also entered this command from within vim after the first input of ":". I can even do it :echo g:typescript_compiler_optionsand it returns --experimentalDecorators. But every time I go to save, I get this error.

How can I make this error go away? --experimentalDecoratorsjust doesn't do its job.

edit I tried this from inside vim::
let g: typescript_compiler_options = '--dnwejuidbnwejudbn'
And the code is still compiled with the same warning. I don't think let g: typescript_compiler_options actually does anything.

edit2: None of these settings seem to do anything.

Edit3: Meanwhile, this hack gets rid of the warning: enter image description here

+4
source share
1 answer

I suppose, but I think you see these warnings from another plugin, possibly Syntastic. Syntastic uses its own compiler settings.

You can try adding something like this line to your vimrc:

let g:syntastic_typescript_tsc_args = "--experimentalDecorators"

See more details :help syntastic-checker-options.

+5
source

Source: https://habr.com/ru/post/1620663/


All Articles