Quietly add go to definition support for tsserver

This commit is contained in:
w0rp committed 2017-11-21 00:21:45 +00:00
1 parent 5a3a695586
commit 7ea3aba5e5
5 files changed
+247

No files matched your search

+8
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