Skip to content

Commit cb3aa0b

Browse files
committed
Update modified buffer before diagnostic check
1 parent 94c7274 commit cb3aa0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/OmniSharp/actions/diagnostics.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ endfunction
5151
" directly from autoload/ale/sources/OmniSharp.vim so requires a full autoload
5252
" function name.
5353
function! OmniSharp#actions#diagnostics#StdioCheck(bufnr, Callback) abort
54+
" OmniSharp#actions#buffer#Update only updates the server state when the
55+
" buffer has been modified since the last server update
56+
call OmniSharp#actions#buffer#Update()
5457
let opts = {
5558
\ 'ResponseHandler': function('s:StdioCheckRH', [a:Callback]),
5659
\ 'BufNum': a:bufnr,

0 commit comments

Comments
 (0)