Implement go to defintion for LSP linters

This commit is contained in:
w0rp
2017-11-26 22:27:08 +00:00
parent 01318b6930
commit 21b460bb1d
4 changed files with 227 additions and 18 deletions

View File

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