mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-30 01:07:21 +08:00
Allow initialization options to be passed to language servers
This commit is contained in:
1 parent
c49ea1a5e3
commit
1a4b08539b
6 files changed
+75
-8
No files matched your search
@@ -24,12 +24,13 @@ function! ale#lsp#message#GetNextVersionID() abort
|
||||
return l:id
|
||||
endfunction
|
||||
|
||||
function! ale#lsp#message#Initialize(root_path) abort
|
||||
function! ale#lsp#message#Initialize(root_path, initialization_options) abort
|
||||
" TODO: Define needed capabilities.
|
||||
return [0, 'initialize', {
|
||||
\ 'processId': getpid(),
|
||||
\ 'rootPath': a:root_path,
|
||||
\ 'capabilities': {},
|
||||
\ 'initializationOptions': a:initialization_options,
|
||||
\}]
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in new issue
Block a user