summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-04-02 22:00:03 +0100
committerw0rp <devw0rp@gmail.com>2019-04-02 22:00:03 +0100
commit435a072181d38ad05d92dfe9dcaa7f14d16de792 (patch)
tree86c20e2ec03ff58d46e35738bbca6b280f782457
parent5be6a2b4e0bc7b1d7b72238ca4df2dc951f3db6d (diff)
downloadale-435a072181d38ad05d92dfe9dcaa7f14d16de792.zip
#2397 - didChangeConfiguration should be a notification
-rw-r--r--autoload/ale/lsp/message.vim2
-rw-r--r--test/lsp/test_lsp_client_messages.vader2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/lsp/message.vim b/autoload/ale/lsp/message.vim
index 646dbd20..4ad94c4b 100644
--- a/autoload/ale/lsp/message.vim
+++ b/autoload/ale/lsp/message.vim
@@ -159,7 +159,7 @@ function! ale#lsp#message#Hover(buffer, line, column) abort
endfunction
function! ale#lsp#message#DidChangeConfiguration(buffer, config) abort
- return [0, 'workspace/didChangeConfiguration', {
+ return [1, 'workspace/didChangeConfiguration', {
\ 'settings': a:config,
\}]
endfunction
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index e0e2ef20..2abdf6ca 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -206,7 +206,7 @@ Execute(ale#lsp#message#DidChangeConfiguration() should return correct messages)
\ }
AssertEqual
\ [
- \ 0,
+ \ 1,
\ 'workspace/didChangeConfiguration',
\ {
\ 'settings': {