diff options
| author | Matthieu Coudron <mattator@gmail.com> | 2020-04-30 15:25:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 15:25:15 +0200 |
| commit | 42b441738d833543c98c97cad0c200bde28ae233 (patch) | |
| tree | 6487aa3db8e2b85a4b61a9eecd465c83184c3b62 /src/nvim/testdir | |
| parent | f9055c585f597fe4ea8ecb990927a2826234393c (diff) | |
| parent | e4a1be779b9a6bb9a47700ebf92f8dd934bb1712 (diff) | |
| download | rneovim-42b441738d833543c98c97cad0c200bde28ae233.tar.gz rneovim-42b441738d833543c98c97cad0c200bde28ae233.tar.bz2 rneovim-42b441738d833543c98c97cad0c200bde28ae233.zip | |
Merge pull request #12204 from archseer/lsp-user-data
lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index f4e6b698c6..1c275d5bd1 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -120,7 +120,7 @@ function! s:CompleteDone_CompleteFuncDict( findstart, base ) \ 'menu': 'extra text', \ 'info': 'words are cool', \ 'kind': 'W', - \ 'user_data': 'test' + \ 'user_data': ['one', 'two'] \ } \ ] \ } @@ -136,7 +136,7 @@ func s:CompleteDone_CheckCompletedItemDict(pre) call assert_equal( 'extra text', v:completed_item[ 'menu' ] ) call assert_equal( 'words are cool', v:completed_item[ 'info' ] ) call assert_equal( 'W', v:completed_item[ 'kind' ] ) - call assert_equal( 'test', v:completed_item[ 'user_data' ] ) + call assert_equal( ['one', 'two'], v:completed_item[ 'user_data' ] ) if a:pre call assert_equal('function', complete_info().mode) @@ -170,7 +170,7 @@ func Test_CompleteDoneDict() execute "normal a\<C-X>\<C-U>\<C-Y>" set completefunc& - call assert_equal('test', v:completed_item[ 'user_data' ]) + call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ]) call assert_true(s:called_completedone) let s:called_completedone = 0 |