From aca1edb47613a2f41f4b845455a2236b946da197 Mon Sep 17 00:00:00 2001 From: Derek Sifford Date: Mon, 11 Feb 2019 16:24:22 -0500 Subject: add project_root_callback for tsserver (#2290) * add project_root_callback for tsserver * add tests for tsserver project root * Update test/command_callback/test_javascript_tsserver_command_callback.vader --- ale_linters/javascript/tsserver.vim | 2 +- ale_linters/typescript/tsserver.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ale_linters') diff --git a/ale_linters/javascript/tsserver.vim b/ale_linters/javascript/tsserver.vim index 6cf08dd6..63509022 100644 --- a/ale_linters/javascript/tsserver.vim +++ b/ale_linters/javascript/tsserver.vim @@ -12,6 +12,6 @@ call ale#linter#Define('javascript', { \ 'node_modules/.bin/tsserver', \ ]), \ 'command': '%e', -\ 'project_root_callback': {-> ''}, +\ 'project_root_callback': 'ale#handlers#tsserver#GetProjectRoot', \ 'language': '', \}) diff --git a/ale_linters/typescript/tsserver.vim b/ale_linters/typescript/tsserver.vim index bac63229..7dc8fa85 100644 --- a/ale_linters/typescript/tsserver.vim +++ b/ale_linters/typescript/tsserver.vim @@ -12,6 +12,6 @@ call ale#linter#Define('typescript', { \ 'node_modules/.bin/tsserver', \ ]), \ 'command': '%e', -\ 'project_root_callback': {-> ''}, +\ 'project_root_callback': 'ale#handlers#tsserver#GetProjectRoot', \ 'language': '', \}) -- cgit v1.2.3