File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
autoload/OmniSharp/actions Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ endfunction
16
16
17
17
function ! s: ProjectRH (Callback, bufnr , response) abort
18
18
if ! a: response .Success | return | endif
19
- let host = OmniSharp#GetHost (a: bufnr )
19
+ let host = getbufvar (a: bufnr, ' OmniSharp_host ' )
20
20
let host.project = a: response .Body
21
21
call a: Callback ()
22
22
endfunction
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ set cpoptions&vim
3
3
4
4
let s: runningTest = 0
5
5
6
- function ! OmniSharp#actions#test#Run () abort
6
+ function ! OmniSharp#actions#test#Run (... ) abort
7
7
if ! s: CheckCapabilities () | return | endif
8
- if ! has_key (OmniSharp#GetHost (bufnr (' %' )), ' project' )
8
+ let bufnr = a: 0 ? a: 1 : bufnr (' %' )
9
+ if ! has_key (OmniSharp#GetHost (bufnr ), ' project' )
9
10
" Initialize the test by fetching the project for the buffer - then call
10
11
" this function again in the callback
11
- call OmniSharp#actions#project#Get (bufnr ( ' % ' ) ,
12
- \ function (' OmniSharp#actions#test#Run' ))
12
+ call OmniSharp#actions#project#Get (bufnr ,
13
+ \ function (' OmniSharp#actions#test#Run' , [ bufnr ] ))
13
14
return
14
15
endif
15
16
let s: runningTest = 1
16
- call OmniSharp#actions#codestructure#Get (bufnr ( ' % ' ) ,
17
+ call OmniSharp#actions#codestructure#Get (bufnr ,
17
18
\ function (' s:RunTest' , [function (' s:CBRunTest' )]))
18
19
endfunction
19
20
You can’t perform that action at this time.
0 commit comments