Skip to content

Commit 502d631

Browse files
committed
Add option to disable quickfix for test results
1 parent 031fbe1 commit 502d631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/OmniSharp/actions/test.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ function! s:run.single.complete(summary) abort
149149
else
150150
echomsg location.name . ': failed'
151151
let title = 'Test failure: ' . location.name
152+
if get(g:, 'OmniSharp_test_quickfix', 1) == 0 | return | endif
152153
let what = {}
153154
if len(a:summary.locations) > 1
154155
let what.quickfixtextfunc = {info->
@@ -263,6 +264,7 @@ function! s:run.multiple.complete(summary) abort
263264
endif
264265
call s:utils.log.warn(title)
265266
endif
267+
if get(g:, 'OmniSharp_test_quickfix', 1) == 0 | return | endif
266268
call OmniSharp#locations#SetQuickfix(locations, title)
267269
endfunction
268270

0 commit comments

Comments
 (0)