diff options
author | Jon Parise <jon@indelible.org> | 2018-10-30 08:54:40 -0700 |
---|---|---|
committer | Jon Parise <jon@indelible.org> | 2018-10-31 08:42:42 -0700 |
commit | b5a7593577e1ada3f81fdaa68862ad4e93dcb5a5 (patch) | |
tree | 88ac692c488b1acc149f3f6c5b114609cea586e1 /test/command_callback/test_elixir_ls_command_callbacks.vader | |
parent | 20e4e3f9db1e46306bbe8ba5c33db92950b2e927 (diff) | |
download | ale-b5a7593577e1ada3f81fdaa68862ad4e93dcb5a5.zip |
Add a `lsp_config_callback` linter option
This is the callback-based variant of the existing `lsp_config` linter
option. It serves the same purpose but can be used when more complicated
processing is needed.
`lsp_config` and `lsp_config_callback` are mutually exclusive options;
if both an given, a linter preprocessing error will be raised.
The runtime logic has been wrapped in `ale#lsp_linter#GetConfig` for
convenience, similar to `ale#lsp_linter#GetOptions`.
This also adds documentation and an `AssertLSPConfig` test function for
completeness.
Diffstat (limited to 'test/command_callback/test_elixir_ls_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_elixir_ls_command_callbacks.vader | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/command_callback/test_elixir_ls_command_callbacks.vader b/test/command_callback/test_elixir_ls_command_callbacks.vader index 0d00354b..f79be9b4 100644 --- a/test/command_callback/test_elixir_ls_command_callbacks.vader +++ b/test/command_callback/test_elixir_ls_command_callbacks.vader @@ -26,4 +26,5 @@ Execute(should set correct LSP values): AssertLSPLanguage 'elixir' AssertLSPOptions {} + AssertLSPConfig {} AssertLSPProject ale#path#Simplify(g:dir . '/mix_paths/wrapped_project') |