Skip to content

Commit cae9778

Browse files
Ferdi265chemzqm
authored andcommitted
refactor(diagnostic): clean up DiagnosticCollection.set() (#1688)
1 parent af8a357 commit cae9778

File tree

3 files changed

+13745
-13681
lines changed

3 files changed

+13745
-13681
lines changed

autoload/coc/util.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,14 @@ function! s:variables(bufnr) abort
325325
return variables
326326
endfunction
327327

328-
function! coc#util#root_patterns()
328+
function! coc#util#root_patterns() abort
329329
return coc#rpc#request('rootPatterns', [bufnr('%')])
330330
endfunction
331331

332+
function! coc#util#get_config(key) abort
333+
return coc#rpc#request('getConfig', [a:key])
334+
endfunction
335+
332336
function! coc#util#on_error(msg) abort
333337
echohl Error | echom '[coc.nvim] '.a:msg | echohl None
334338
endfunction

0 commit comments

Comments
 (0)