#1162 Get LSP completions working reasonably well

This commit is contained in:
w0rp
2017-11-26 13:01:01 +00:00
parent b1a6abdda6
commit 8254e507d6
4 changed files with 36 additions and 17 deletions

View File

@@ -110,7 +110,7 @@ Execute(ale#lsp#message#Completion() should return correct messages):
\ 'textDocument': {
\ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
\ },
\ 'position': {'line': 11, 'character': 33},
\ 'position': {'line': 11, 'character': 34},
\ }
\ ],
\ ale#lsp#message#Completion(bufnr(''), 12, 34, '')
@@ -124,7 +124,7 @@ Execute(ale#lsp#message#Completion() should return correct messages with a trigg
\ 'textDocument': {
\ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
\ },
\ 'position': {'line': 11, 'character': 33},
\ 'position': {'line': 11, 'character': 34},
\ 'context': {'triggerKind': 2, 'triggerCharacter': '.'},
\ }
\ ],