diff options
author | Reed Riley <john.reed.riley@gmail.com> | 2019-04-19 17:09:51 -0400 |
---|---|---|
committer | Reed Riley <john.reed.riley@gmail.com> | 2019-04-19 23:10:55 -0400 |
commit | c36f3e78e47ae3b83eba6b2ad7139ed4d8f7ed9b (patch) | |
tree | f8d329ff8ea20a7b926f5e72b3e7832db858bbca /test/test_go_to_definition.vader | |
parent | fcc2c3ba71afa2a7965f3c1e9ec8c03381178180 (diff) | |
download | ale-c36f3e78e47ae3b83eba6b2ad7139ed4d8f7ed9b.zip |
Add support for Vim's tagstack to ALEGoToDefinition
fixes 1236
Diffstat (limited to 'test/test_go_to_definition.vader')
-rw-r--r-- | test/test_go_to_definition.vader | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go_to_definition.vader b/test/test_go_to_definition.vader index 452b7692..3479d7b5 100644 --- a/test/test_go_to_definition.vader +++ b/test/test_go_to_definition.vader @@ -78,6 +78,15 @@ After: Execute(Other messages for the tsserver handler should be ignored): call ale#definition#HandleTSServerResponse(1, {'command': 'foo'}) +Execute(Tagstack should be incremented if supported): + if exists('*gettagstack') && exists('*settagstack') + let original_stack_depth = gettagstack().length + endif + call ale#definition#UpdateTagStack() + if exists('*gettagstack') && exists('*settagstack') + AssertEqual original_stack_depth + 1, gettagstack().length + endif + Execute(Failed definition responses should be handled correctly): call ale#definition#SetMap({3: {'open_in': 'current-buffer'}}) call ale#definition#HandleTSServerResponse( |