diff options
author | Daniel Welch <dwelch2102@gmail.com> | 2018-10-22 07:24:46 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-10-22 13:24:46 +0100 |
commit | 2000436dfd7a25a8e9f66788c94bfb4512adda98 (patch) | |
tree | 000bafadbd03a1364481f6ec201c8ef074869a03 /test/lsp/test_lsp_client_messages.vader | |
parent | f57ad883f2ddb0613ffeffa4529269a6bcaf913a (diff) | |
download | ale-2000436dfd7a25a8e9f66788c94bfb4512adda98.zip |
LSP configuration via didChangeConfiguration (#1852)
* adding LSP configuration via workspace/didChangeConfiguration
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r-- | test/lsp/test_lsp_client_messages.vader | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader index dc28c2e9..d4abaad9 100644 --- a/test/lsp/test_lsp_client_messages.vader +++ b/test/lsp/test_lsp_client_messages.vader @@ -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 \ [ |