LSP configuration via didChangeConfiguration (#1852)

* adding LSP configuration via workspace/didChangeConfiguration
This commit is contained in:
Daniel Welch
2018-10-22 07:24:46 -05:00
committed by w0rp
parent f57ad883f2
commit 2000436dfd
5 changed files with 66 additions and 1 deletions

View File

@@ -175,6 +175,22 @@ Execute(ale#lsp#message#Hover() should return correct messages):
\ ],
\ ale#lsp#message#Hover(bufnr(''), 12, 34)
Execute(ale#lsp#message#DidChangeConfiguration() should return correct messages):
let g:ale_lsp_configuration = {
\ 'foo': 'bar'
\ }
AssertEqual
\ [
\ 0,
\ 'workspace/didChangeConfiguration',
\ {
\ 'settings': {
\ 'foo': 'bar',
\ }
\ }
\ ],
\ ale#lsp#message#DidChangeConfiguration(bufnr(''), g:ale_lsp_configuration)
Execute(ale#lsp#tsserver_message#Open() should return correct messages):
AssertEqual
\ [