#1428 Start implementing LSP hover support

This commit is contained in:
w0rp
2018-04-22 22:00:25 +01:00
parent 0b3ee11546
commit ef130c4428
6 changed files with 260 additions and 0 deletions

View File

@@ -159,6 +159,20 @@ Execute(ale#lsp#message#References() should return correct messages):
\ ],
\ ale#lsp#message#References(bufnr(''), 12, 34)
Execute(ale#lsp#message#Hover() should return correct messages):
AssertEqual
\ [
\ 0,
\ 'textDocument/hover',
\ {
\ 'textDocument': {
\ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
\ },
\ 'position': {'line': 11, 'character': 34},
\ }
\ ],
\ ale#lsp#message#Hover(bufnr(''), 12, 34)
Execute(ale#lsp#tsserver_message#Open() should return correct messages):
AssertEqual
\ [