@@ -32,7 +32,7 @@ function! s:debug.prepare(bufferTests) abort
32
32
let project = OmniSharp#GetHost (bufnr ).project
33
33
let targetFramework = project.MsBuildProject.TargetFramework
34
34
let opts = {
35
- \ ' ResponseHandler' : funcref (' s:debug.launch' , [bufnr , tests ]),
35
+ \ ' ResponseHandler' : funcref (' s:debug.launch' , [bufnr , currentTest.name ]),
36
36
\ ' Parameters' : {
37
37
\ ' MethodName' : currentTest.name,
38
38
\ ' NoBuild' : get (s: , ' nobuild' , 0 ),
@@ -45,12 +45,14 @@ function! s:debug.prepare(bufferTests) abort
45
45
call OmniSharp#stdio#Request (' /v2/debugtest/getstartinfo' , opts)
46
46
endfunction
47
47
48
- function ! s: debug .launch (bufnr , tests , response) abort
48
+ function ! s: debug .launch (bufnr , testname , response) abort
49
49
let args = split (substitute (a: response .Body.Arguments , ' \"' , ' ' , ' g' ), ' ' )
50
50
let cmd = a: response .Body.FileName
51
51
let testhost = [cmd] + args
52
52
if ! s: debug .process.start (testhost) | return | endif
53
53
let s: run .running = 1
54
+ call OmniSharp#testrunner#StateRunning (a: bufnr , a: testname )
55
+ let s: debug .bufnr = a: bufnr
54
56
let s: omnisharp_pre_debug_cwd = getcwd ()
55
57
call vimspector#LaunchWithConfigurations ({
56
58
\ ' attach' : {
@@ -77,6 +79,7 @@ function! s:debug.complete(response) abort
77
79
if ! a: response .Success
78
80
call s: utils .log .warn ([' Error debugging unit test' , a: response .Message])
79
81
endif
82
+ call OmniSharp#testrunner#StateSkipped (s: debug .bufnr )
80
83
endfunction
81
84
82
85
function ! s: debug .process.start (command ) abort
0 commit comments