Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions syntax_checkers/typescript/tsc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ let s:save_cpo = &cpo
set cpo&vim

function! SyntaxCheckers_typescript_tsc_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': '--module commonjs',
\ 'args_after': '--out ' . syntastic#util#DevNull() })
if syntastic#util#isRunningWindows()
" On Windows, tsc is unable to use 'NUL'.
let makeprg = self.makeprgBuild({
\ 'args': '--module commonjs',
\ 'args_after': '--outDir ' . $temp })
else
let makeprg = self.makeprgBuild({
\ 'args': '--module commonjs',
\ 'args_after': '--out ' . syntastic#util#DevNull() })
endif

let errorformat =
\ '%E%f %#(%l\,%c): error %m,' .
Expand Down