Close #1553 - Support some tsserver completion for strings

This commit is contained in:
w0rp
2018-05-28 15:16:15 +01:00
parent ef1ec5341f
commit 3c55cb087d
4 changed files with 118 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ After:
unlet! b:ale_completion_parser
unlet! b:ale_complete_done_time
unlet! b:ale_linters
unlet! b:ale_tsserver_completion_names
call ale#test#RestoreDirectory()
call ale#linter#Reset()
@@ -112,6 +113,12 @@ Execute(The right message sent to the tsserver LSP when the first completion mes
\ ],
\})
" We should save the names we got in the buffer, as TSServer doesn't return
" details for every name.
AssertEqual
\ ['Foo', 'FooBar', 'frazzle'],
\ get(b:, 'ale_tsserver_completion_names', [])
" The entry details messages should have been sent.
AssertEqual
\ [[