mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-30 01:07:21 +08:00
Quietly add go to definition support for tsserver
This commit is contained in:
1 parent
5a3a695586
commit
7ea3aba5e5
5 files changed
+247
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user