diff options
author | Dalius Dobravolskas <dalius.dobravolskas@gmail.com> | 2020-11-14 12:15:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 10:15:17 +0000 |
commit | 01800a23addb52788265e0349f519556dab41301 (patch) | |
tree | d8f98728e4695718e9d7e142945cf7051a71044a /test/test_code_action.vader | |
parent | 1ec573bf0df6cbc5eef8b593f93081e4c1837c1b (diff) | |
download | ale-01800a23addb52788265e0349f519556dab41301.zip |
Support for LSP/tsserver Code Actions (#3437)
* Added tsserver and LSP code action support.
* tsserver refactors support added.
* Handling special case when new text is added after new line symbol.
* ale#code_action#ApplyChanges simplified.
* Initial attempt on LSP Code Actions.
* workspace/executeCommand added.
* Some null checks added.
* Add last column to LSP Code Action message.
* Pass diagnostics to LSP code action.
Previously ApplyChanges code was applied from top-to-bottom that required
extra parameters to track progress and there was bug. I have changed code
to bottom-to-top approach as that does not require those extra parameters
and solved the bug.
Tested with typescript-language-server and it is working.
Diffstat (limited to 'test/test_code_action.vader')
-rw-r--r-- | test/test_code_action.vader | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_code_action.vader b/test/test_code_action.vader index 2e5d1381..7eabb759 100644 --- a/test/test_code_action.vader +++ b/test/test_code_action.vader @@ -3,6 +3,9 @@ Before: let g:ale_enabled = 0 + " Enable fix end-of-line as tests below expect that + set fixeol + runtime autoload/ale/code_action.vim runtime autoload/ale/util.vim @@ -211,6 +214,7 @@ Execute(End of file can be modified): \) AssertEqual g:test.text + [ + \ '', \ 'type A: string', \ 'type B: number', \ '', |