LSP configuration via didChangeConfiguration (#1852)

* adding LSP configuration via workspace/didChangeConfiguration
This commit is contained in:
Daniel Welch authored and w0rp committed 2018-10-22 13:24:46 +01:00
1 parent f57ad883f2
commit 2000436dfd
5 files changed
+66 -1

No files matched your search

+16
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
\ [