Quietly add go to definition support for tsserver

This commit is contained in:
w0rp
2017-11-21 00:21:45 +00:00
parent 5a3a695586
commit 7ea3aba5e5
5 changed files with 247 additions and 0 deletions

View File

@@ -53,3 +53,11 @@ function! ale#lsp#tsserver_message#CompletionEntryDetails(buffer, line, column,
\ 'entryNames': a:entry_names,
\}]
endfunction
function! ale#lsp#tsserver_message#Definition(buffer, line, column) abort
return [0, 'ts@definition', {
\ 'line': a:line,
\ 'offset': a:column,
\ 'file': expand('#' . a:buffer . ':p'),
\}]
endfunction