diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-10-31 16:24:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 16:24:11 +0000 |
commit | 5f206d900e3ae09cafc36f8038000fb13dbe3bab (patch) | |
tree | 97a2f2a8a3a20f7d9c0ea6aaa7c295fdcf1cd9f3 /test/lsp/test_update_config.vader | |
parent | 6212c22b5a6312db7e06f802197a7cb021b7e588 (diff) | |
parent | 2ac9e2a29e3c570e8aac5d8f5404921e8d816006 (diff) | |
download | ale-5f206d900e3ae09cafc36f8038000fb13dbe3bab.zip |
Merge pull request #2035 from jparise/lsp_config_callback
Add a `lsp_config_callback` linter option
Diffstat (limited to 'test/lsp/test_update_config.vader')
-rw-r--r-- | test/lsp/test_update_config.vader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lsp/test_update_config.vader b/test/lsp/test_update_config.vader new file mode 100644 index 00000000..07068bc8 --- /dev/null +++ b/test/lsp/test_update_config.vader @@ -0,0 +1,17 @@ +Before: + runtime autoload/ale/lsp.vim + + let g:conn_id = ale#lsp#Register('executable', '/foo/bar', {}) + +After: + Restore + + unlet! g:conn_id + + runtime autoload/ale/lsp.vim + +Execute(Only send updates when the configuration dictionary changes): + AssertEqual 0, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {}) + AssertEqual 1, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {'a': 1}) + AssertEqual 0, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {'a': 1}) + AssertEqual 1, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {}) |