Skip to content

Commit

Permalink
Exclude quickfix stack locations from runner
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspoons committed Apr 10, 2023
1 parent a4141d8 commit a5009f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autoload/OmniSharp/actions/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,20 @@ function! s:run.single.test(testName, bufferTests) abort
endfunction

function! s:run.single.complete(summary) abort
if len(a:summary.locations) > 1
let locations = filter(copy(a:summary.locations), 'has_key(v:val, "bufnr")')
if len(locations) > 1
" A single test was run, but multiple test results were returned. This can
" happen when using e.g. NUnit TestCaseSources which re-run the test using
" different arguments.
call s:run.multiple.complete([a:summary])
return
endif
if a:summary.pass && len(a:summary.locations) == 0
if a:summary.pass && len(locations) == 0
echomsg 'No tests were run'
" Do we ever reach here?
" call OmniSharp#testrunner#StateSkipped(bufnr)
endif
let location = a:summary.locations[0]
let location = locations[0]
call OmniSharp#testrunner#StateComplete(location)
if a:summary.pass
if get(location, 'type', '') ==# 'W'
Expand Down

0 comments on commit a5009f9

Please sign in to comment.