Skip to content

Commit

Permalink
refactor(diagnostic): clean up DiagnosticCollection.set() (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdi265 authored and chemzqm committed Mar 30, 2020
1 parent af8a357 commit cae9778
Show file tree
Hide file tree
Showing 3 changed files with 13,745 additions and 13,681 deletions.
6 changes: 5 additions & 1 deletion autoload/coc/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,14 @@ function! s:variables(bufnr) abort
return variables
endfunction

function! coc#util#root_patterns()
function! coc#util#root_patterns() abort
return coc#rpc#request('rootPatterns', [bufnr('%')])
endfunction

function! coc#util#get_config(key) abort
return coc#rpc#request('getConfig', [a:key])
endfunction

function! coc#util#on_error(msg) abort
echohl Error | echom '[coc.nvim] '.a:msg | echohl None
endfunction
Expand Down
Loading

0 comments on commit cae9778

Please sign in to comment.