Pass rootUri to LSPs in addition to rootPath

This commit is contained in:
Ben Falconer
2018-06-06 16:59:44 +01:00
parent 1a4b08539b
commit 641c0c797b
2 changed files with 3 additions and 0 deletions

View File

@@ -26,11 +26,13 @@ endfunction
function! ale#lsp#message#Initialize(root_path, initialization_options) abort
" TODO: Define needed capabilities.
" NOTE: rootPath is deprecated in favour of rootUri
return [0, 'initialize', {
\ 'processId': getpid(),
\ 'rootPath': a:root_path,
\ 'capabilities': {},
\ 'initializationOptions': a:initialization_options,
\ 'rootUri': ale#path#ToURI(a:root_path),
\}]
endfunction