Skip to content

Commit e8b3e41

Browse files
committed
[add] abort attribute autoload function
1 parent 60fd0c6 commit e8b3e41

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

autoload/OmniSharp/actions/complete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function! OmniSharp#actions#complete#Get(partial, ...) abort
3131
endif
3232
endfunction
3333

34-
function! OmniSharp#actions#complete#ExpandSnippet()
34+
function! OmniSharp#actions#complete#ExpandSnippet() abort
3535
if !g:OmniSharp_want_snippet
3636
return
3737
endif

autoload/OmniSharp/log.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function! OmniSharp#log#LogServer(job, raw, msg) abort
7575
endif
7676
endfunction
7777

78-
function! OmniSharp#log#Open(...)
78+
function! OmniSharp#log#Open(...) abort
7979
if g:OmniSharp_server_stdio
8080
let logfile = s:stdiologfile
8181
if exists('b:OmniSharp_host')

autoload/OmniSharp/preview.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let s:save_cpo = &cpoptions
22
set cpoptions&vim
33

4-
function! OmniSharp#preview#Display(content, title)
4+
function! OmniSharp#preview#Display(content, title) abort
55
execute 'silent pedit' a:title
66
silent wincmd P
77
setlocal modifiable noreadonly

autoload/OmniSharp/py.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else
2828
endfunction
2929
endif
3030

31-
function! OmniSharp#py#Bootstrap()
31+
function! OmniSharp#py#Bootstrap() abort
3232
if exists('s:bootstrap_complete') | return | endif
3333
exec s:pycmd "sys.path.append(r'" . g:OmniSharp_python_path . "')"
3434
exec s:pyfile fnameescape(OmniSharp#util#PathJoin(['python', 'bootstrap.py']))
@@ -46,7 +46,7 @@ function! OmniSharp#py#CheckAlive(sln_or_dir) abort
4646
return alive
4747
endfunction
4848

49-
function! OmniSharp#py#CheckForError(...)
49+
function! OmniSharp#py#CheckForError(...) abort
5050
let should_print = a:0 ? a:1 : 1
5151
if !empty(g:OmniSharp_py_err)
5252
if should_print

autoload/OmniSharp/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ endfunction
134134

135135
" :echoerr will throw if inside a try conditional, or function labeled 'abort'
136136
" This function will do the same thing without throwing
137-
function! OmniSharp#util#EchoErr(msg)
137+
function! OmniSharp#util#EchoErr(msg) abort
138138
let v:errmsg = a:msg
139139
echohl ErrorMsg | echomsg a:msg | echohl None
140140
endfunction
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
let s:currentLhsRequest = v:null
32

4-
function! s:onReceivedResponse(lhs, results)
3+
function! s:onReceivedResponse(lhs, results) abort
54
if s:currentLhsRequest != a:lhs
65
return
76
endif
@@ -10,9 +9,8 @@ function! s:onReceivedResponse(lhs, results)
109
call deoplete#auto_complete()
1110
endfunction
1211

13-
function! deoplete#source#omnisharp#sendRequest(lhs, partial)
12+
function! deoplete#source#omnisharp#sendRequest(lhs, partial) abort
1413
let s:currentLhsRequest = a:lhs
1514
let g:deoplete#source#omnisharp#_results = v:null
1615
call OmniSharp#actions#complete#Get(a:partial, {results -> s:onReceivedResponse(a:lhs, results)})
1716
endfunction
18-

0 commit comments

Comments
 (0)